* [refpolicy] [PATCH] Add fc for /sys/fs/debug as debugfs_t
@ 2015-05-05 12:28 Laurent Bigonville
2015-05-05 12:41 ` Miroslav Grepl
0 siblings, 1 reply; 3+ messages in thread
From: Laurent Bigonville @ 2015-05-05 12:28 UTC (permalink / raw)
To: refpolicy
From: Laurent Bigonville <bigon@bigon.be>
---
policy/modules/kernel/kernel.fc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/policy/modules/kernel/kernel.fc b/policy/modules/kernel/kernel.fc
index 7be4ddf..2f8b6f1 100644
--- a/policy/modules/kernel/kernel.fc
+++ b/policy/modules/kernel/kernel.fc
@@ -1 +1 @@
-# This module currently does not have any file contexts.
+/sys/fs/debugfs(/.*)? gen_context(system_u:object_r:debugfs_t,s0)
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [refpolicy] [PATCH] Add fc for /sys/fs/debug as debugfs_t
2015-05-05 12:28 [refpolicy] [PATCH] Add fc for /sys/fs/debug as debugfs_t Laurent Bigonville
@ 2015-05-05 12:41 ` Miroslav Grepl
2015-05-06 9:59 ` Laurent Bigonville
0 siblings, 1 reply; 3+ messages in thread
From: Miroslav Grepl @ 2015-05-05 12:41 UTC (permalink / raw)
To: refpolicy
On 05/05/2015 02:28 PM, Laurent Bigonville wrote:
> From: Laurent Bigonville <bigon@bigon.be>
>
> ---
> policy/modules/kernel/kernel.fc | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/policy/modules/kernel/kernel.fc b/policy/modules/kernel/kernel.fc
> index 7be4ddf..2f8b6f1 100644
> --- a/policy/modules/kernel/kernel.fc
> +++ b/policy/modules/kernel/kernel.fc
> @@ -1 +1 @@
> -# This module currently does not have any file contexts.
> +/sys/fs/debugfs(/.*)? gen_context(system_u:object_r:debugfs_t,s0)
>
In Fedora, we have
+/sys/kernel/debug -d gen_context(system_u:object_r:debugfs_t,s0)
+/sys/kernel/debug/.* <<none>>
--
Miroslav Grepl
Software Engineering, SELinux Solutions
Red Hat, Inc.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [refpolicy] [PATCH] Add fc for /sys/fs/debug as debugfs_t
2015-05-05 12:41 ` Miroslav Grepl
@ 2015-05-06 9:59 ` Laurent Bigonville
0 siblings, 0 replies; 3+ messages in thread
From: Laurent Bigonville @ 2015-05-06 9:59 UTC (permalink / raw)
To: refpolicy
Le Tue, 05 May 2015 14:41:11 +0200,
Miroslav Grepl <mgrepl@redhat.com> a ?crit :
> On 05/05/2015 02:28 PM, Laurent Bigonville wrote:
> > From: Laurent Bigonville <bigon@bigon.be>
> >
> > ---
> > policy/modules/kernel/kernel.fc | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/policy/modules/kernel/kernel.fc
> > b/policy/modules/kernel/kernel.fc index 7be4ddf..2f8b6f1 100644
> > --- a/policy/modules/kernel/kernel.fc
> > +++ b/policy/modules/kernel/kernel.fc
> > @@ -1 +1 @@
> > -# This module currently does not have any file contexts.
> > +/sys/fs/debugfs(/.*)?
> > gen_context(system_u:object_r:debugfs_t,s0)
> >
> In Fedora, we have
>
> +/sys/kernel/debug -d gen_context(system_u:object_r:debugfs_t,s0)
> +/sys/kernel/debug/.* <<none>>
And you are actually correct I think, it's /sys/kernel and
not /sys/fs ... I'll resend a patch
Laurent Bigonville
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-06 9:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-05 12:28 [refpolicy] [PATCH] Add fc for /sys/fs/debug as debugfs_t Laurent Bigonville
2015-05-05 12:41 ` Miroslav Grepl
2015-05-06 9:59 ` Laurent Bigonville
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.