All of lore.kernel.org
 help / color / mirror / Atom feed
From: cpebenito@tresys.com (Christopher J. PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH] filesystem: label cgroup symlinks
Date: Mon, 21 Apr 2014 09:41:36 -0400	[thread overview]
Message-ID: <53552010.90204@tresys.com> (raw)
In-Reply-To: <1397510311-6159-1-git-send-email-nicolas.iooss@m4x.org>

On 04/14/2014 05:18 PM, Nicolas Iooss wrote:
> /sys/fs/cgroup is a tmpfs which contains cgroup mounts and symlinks such as
> cpu and cpuacct.  Running restorecon makes this warning happen:
> 
>     restorecon:  Warning no default label for /sys/fs/cgroup/cpu
> 
> Declare a file context for every symlink in the cgroup tmpfs montpoint to
> no longer have such warning.
> ---
>  policy/modules/kernel/filesystem.fc | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/policy/modules/kernel/filesystem.fc b/policy/modules/kernel/filesystem.fc
> index d7c11a0..f5cfe84 100644
> --- a/policy/modules/kernel/filesystem.fc
> +++ b/policy/modules/kernel/filesystem.fc
> @@ -13,6 +13,7 @@
>  
>  /sys/fs/cgroup	-d	gen_context(system_u:object_r:cgroup_t,s0)
>  /sys/fs/cgroup/.*	<<none>>
> +/sys/fs/cgroup/[^/]+	-l	gen_context(system_u:object_r:cgroup_t,s0)
>  
>  /sys/fs/pstore	-d	gen_context(system_u:object_r:pstore_t,s0)
>  /sys/fs/pstore/.*	<<none>>
 
Merged.

-- 
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com

      reply	other threads:[~2014-04-21 13:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-14 21:18 [refpolicy] [PATCH] filesystem: label cgroup symlinks Nicolas Iooss
2014-04-21 13:41 ` Christopher J. PeBenito [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53552010.90204@tresys.com \
    --to=cpebenito@tresys.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.