]> git.karo-electronics.de Git - karo-tx-linux.git/commit
device_cgroup: add proper checking when changing default behavior
authorAristeu Rozanski <aris@redhat.com>
Thu, 25 Oct 2012 01:13:53 +0000 (12:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 25 Oct 2012 01:13:53 +0000 (12:13 +1100)
commitbca37d10f087b552cfbfcb0a055c214967105f19
tree72b1f6c5c22eb80e7a4a22ad88d80e5b22933c96
parent2a2500577fc95022b4a601e906fd1ad7c73a204b
device_cgroup: add proper checking when changing default behavior

Before changing a group's default behavior to ALLOW, we must check if its
parent's behavior is also ALLOW.

Signed-off-by: Aristeu Rozanski <aris@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Li Zefan <lizefan@huawei.com>
Cc: James Morris <jmorris@namei.org>
Cc: Pavel Emelyanov <xemul@openvz.org>
Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Cc: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
security/device_cgroup.c