All of lore.kernel.org
 help / color / mirror / Atom feed
* Mount of cgroup filesystems fails when booting in SELinux enforcing mode
@ 2013-02-14 21:25 aranea
  2013-02-15 13:32 ` Stephen Smalley
  0 siblings, 1 reply; 11+ messages in thread
From: aranea @ 2013-02-14 21:25 UTC (permalink / raw)
  To: selinux

[-- Attachment #1: Type: text/plain, Size: 1477 bytes --]

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!


Regards,
Luis "aranea" Ressel

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-02-15 21:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-14 21:25 Mount of cgroup filesystems fails when booting in SELinux enforcing mode aranea
2013-02-15 13:32 ` Stephen Smalley
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

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.