Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs

Pull do_move_mount() fix from Al Viro:
"Regression fix"

* 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs:
vfs: move_mount: reject moving kernel internal mounts

+4 -3
+4 -3
fs/namespace.c
··· 2596 2596 if (!check_mnt(p)) 2597 2597 goto out; 2598 2598 2599 - /* The thing moved should be either ours or completely unattached. */ 2600 - if (attached && !check_mnt(old)) 2599 + /* The thing moved must be mounted... */ 2600 + if (!is_mounted(&old->mnt)) 2601 2601 goto out; 2602 2602 2603 - if (!attached && !(ns && is_anon_ns(ns))) 2603 + /* ... and either ours or the root of anon namespace */ 2604 + if (!(attached ? check_mnt(old) : is_anon_ns(ns))) 2604 2605 goto out; 2605 2606 2606 2607 if (old->mnt.mnt_flags & MNT_LOCKED)