diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2014-10-08 01:22:52 +0200 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2014-12-02 17:46:50 +0100 |
commit | 8486a7882b5ba906992fd78bbfcefaae7fe285cc (patch) | |
tree | 5b6f8175e8cce90109c60032370281c37c580a34 /kernel/crash_dump.c | |
parent | umount: Do not allow unmounting rootfs. (diff) | |
download | linux-8486a7882b5ba906992fd78bbfcefaae7fe285cc.tar.xz linux-8486a7882b5ba906992fd78bbfcefaae7fe285cc.zip |
mnt: Move the clear of MNT_LOCKED from copy_tree to it's callers.
Clear MNT_LOCKED in the callers of copy_tree except copy_mnt_ns, and
collect_mounts. In copy_mnt_ns it is necessary to create an exact
copy of a mount tree, so not clearing MNT_LOCKED is important.
Similarly collect_mounts is used to take a snapshot of the mount tree
for audit logging purposes and auditing using a faithful copy of the
tree is important.
This becomes particularly significant when we start setting MNT_LOCKED
on rootfs to prevent it from being unmounted.
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
Diffstat (limited to 'kernel/crash_dump.c')
0 files changed, 0 insertions, 0 deletions