device_cgroup: add proper checking when changing default behavior
authorAristeu Rozanski <aris@redhat.com>
Thu, 25 Oct 2012 20:37:45 +0000 (13:37 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Oct 2012 21:37:52 +0000 (14:37 -0700)
commit4cef7299b4786879a3e113e84084a72b24590c5b
tree31efb5e00be1c1e5cc266046c783c7569e495ede
parent26fd8405dd470cb8b54cb96859b7dd437e5e1391
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
security/device_cgroup.c