All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Smalley <sds@tycho.nsa.gov>
To: Luis Ressel <aranea@aixah.de>
Cc: selinux@tycho.nsa.gov
Subject: Re: Mount of cgroup filesystems fails when booting in SELinux enforcing mode
Date: Fri, 15 Feb 2013 08:32:23 -0500	[thread overview]
Message-ID: <511E38E7.4040609@tycho.nsa.gov> (raw)
In-Reply-To: <20130214222502.2f7d657c@gentp.lnet>

On 02/14/2013 04:25 PM,  Luis Ressel wrote:
> Hello everyone,
>
>
> does anybody have an idea about this bug?
> https://bugs.gentoo.org/show_bug.cgi?id=457618
>
> It looks like help from SELinux kernel developers would be really
> helpful here, as everything is going on in-kernel here. It would be
> especially helpful if someone could explain why there are no avc denial
> messages.
>
> If it helps, this is the userland script which mounts the cgroup
> filesystems and therefore causes the messages:
>
>          local agent="/lib64/rc/sh/cgroup-release-agent.sh"
>          mkdir /sys/fs/cgroup/openrc
>          mount -n -t cgroup \
>                  -o none,nodev,noexec,nosuid,name=openrc,release_agent="$agent" \
>                  openrc /sys/fs/cgroup/openrc
>          echo 1 > /sys/fs/cgroup/openrc/notify_on_release
>
>          yesno ${rc_controller_cgroups:-YES} && [ -e /proc/cgroups ] || return 0
>          while read name hier groups enabled rest; do
>                  case "${enabled}" in
>                          1)      mkdir /sys/fs/cgroup/${name}
>                                  mount -n -t cgroup -o nodev,noexec,nosuid,${name} \
>                                          ${name} /sys/fs/cgroup/${name}
>                                  ;;
>                  esac
>          done < /proc/cgroups
>
> The "echo 1" line yields a "permission denied" error, but apart from
> that there are no other messages.
>
>
> If you need more details, just ask me.
> Any feedback will be greatly appreciated!

Try stripping dontaudit rules from your policy and re-testing.
semodule -DB
<re-test>
semodule -B




--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2013-02-15 13:32 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 21:25 Mount of cgroup filesystems fails when booting in SELinux enforcing mode aranea
2013-02-15 13:32 ` Stephen Smalley [this message]
2013-02-15 14:06   ` Luis Ressel
2013-02-15 14:28     ` Stephen Smalley
2013-02-15 15:02       ` Luis Ressel
2013-02-15 15:34         ` Stephen Smalley
2013-02-15 16:07           ` Luis Ressel
2013-02-15 18:19             ` Stephen Smalley
2013-02-15 18:44               ` Luis Ressel
2013-02-15 19:30                 ` Stephen Smalley
2013-02-15 21:03                   ` Luis Ressel

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=511E38E7.4040609@tycho.nsa.gov \
    --to=sds@tycho.nsa.gov \
    --cc=aranea@aixah.de \
    --cc=selinux@tycho.nsa.gov \
    /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.