mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
userns: Remove the now unnecessary FS_USERNS_DEV_MOUNT flag
Now that SB_I_NODEV controls the nodev behavior devpts can just clear this flag during mount. Simplifying the code and making it easier to audit how the code works. While still preserving the invariant that s_iflags is only modified during mount. Acked-by: Seth Forshee <[email protected]> Signed-off-by: "Eric W. Biederman" <[email protected]>
This commit is contained in:
parent
67690f937c
commit
cc50a07a24
3 changed files with 3 additions and 4 deletions
|
|
@ -206,8 +206,7 @@ static struct super_block *alloc_super(struct file_system_type *type, int flags,
|
|||
init_waitqueue_head(&s->s_writers.wait_unfrozen);
|
||||
s->s_bdi = &noop_backing_dev_info;
|
||||
s->s_flags = flags;
|
||||
if ((s->s_user_ns != &init_user_ns) &&
|
||||
!(type->fs_flags & FS_USERNS_DEV_MOUNT))
|
||||
if (s->s_user_ns != &init_user_ns)
|
||||
s->s_iflags |= SB_I_NODEV;
|
||||
INIT_HLIST_NODE(&s->s_instances);
|
||||
INIT_HLIST_BL_HEAD(&s->s_anon);
|
||||
|
|
|
|||
Loading…
Reference in a new issue