]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
container freezer: prevent frozen tasks or cgroups from changing
authorMatt Helsley <matthltc@us.ibm.com>
Sun, 19 Oct 2008 03:27:22 +0000 (20:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:52:34 +0000 (08:52 -0700)
commit957a4eeaf4af614ab0fc4c09a22593d6ab233f5b
tree944d338890a2346ca1bd9cd78e01c659635bf085
parent5a06915c6df9b89cda5ddb3f8cce5f9a6be534d2
container freezer: prevent frozen tasks or cgroups from changing

Don't let frozen tasks or cgroups change.  This means frozen tasks can't
leave their current cgroup for another cgroup.  It also means that tasks
cannot be added to or removed from a cgroup in the FROZEN state.  We
enforce these rules by checking for frozen tasks and cgroups in the
can_attach() function.

Signed-off-by: Matt Helsley <matthltc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup_freezer.c