[RHEL7,COMMIT] ve/fs/autofs: allow to mount autofs inside non-root userns

Submitted by Konstantin Khorenko on June 28, 2018, 9:44 a.m.

Details

Message ID 201806280944.w5S9icSp019632@finist_ce7.work
State New
Headers show

Patch hide | download patch | download mbox

diff --git a/fs/autofs4/init.c b/fs/autofs4/init.c
index c80fb66aade0..a06b5e9ac9c9 100644
--- a/fs/autofs4/init.c
+++ b/fs/autofs4/init.c
@@ -21,7 +21,7 @@  static struct file_system_type autofs_fs_type = {
 	.name		= "autofs",
 	.mount		= autofs_mount,
 	.kill_sb	= autofs4_kill_sb,
-	.fs_flags	= FS_VIRTUALIZED,
+	.fs_flags	= FS_VIRTUALIZED | FS_USERNS_MOUNT,
 };
 MODULE_ALIAS_FS("autofs");