diff options
author | Li Zefan <lizefan@huawei.com> | 2014-06-04 12:48:15 +0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2014-06-05 05:21:51 +0400 |
commit | 1f779fb28aa07350d72976d304591d216ca86f0e (patch) | |
tree | d172ba488c50cedbfd4f1d0f676b7a6512605d84 /security/apparmor/lib.c | |
parent | 5533e0114425dcdb878f11b291f2727af8667a7c (diff) | |
download | linux-1f779fb28aa07350d72976d304591d216ca86f0e.tar.xz |
cgroup: don't destroy the default root
The default root is allocated and initialized at boot phase, so we
shouldn't destroy the default root when it's umounted, otherwise
it will lead to disaster.
Just try mount and then umount the default root, and the kernel will
crash immediately.
v2:
- No need to check for CSS_NO_REF in cgroup_get/put(). (Tejun)
- Better call cgroup_put() for the default root in kill_sb(). (Tejun)
- Add a comment.
Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'security/apparmor/lib.c')
0 files changed, 0 insertions, 0 deletions