[Devel] [PATCH] binfmt_misc: add FS_USERNS_MOUNT to file system flags

Stanislav Kinsburskiy skinsbursky at odin.com
Fri Oct 16 03:34:12 PDT 2015


From: Stanislav Kinsburskiy <skinsbursky at parallels.com>

This is required to allow mounts in nested namespaces.

https://jira.sw.ru/browse/PSBM-40137

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at parallels.com>
---
 fs/binfmt_misc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/binfmt_misc.c b/fs/binfmt_misc.c
index 90c306e..2be9b62 100644
--- a/fs/binfmt_misc.c
+++ b/fs/binfmt_misc.c
@@ -748,7 +748,7 @@ static struct file_system_type bm_fs_type = {
 	.name		= "binfmt_misc",
 	.mount		= bm_mount,
 	.kill_sb	= kill_litter_super,
-	.fs_flags	= FS_VIRTUALIZED,
+	.fs_flags	= FS_VIRTUALIZED | FS_USERNS_MOUNT,
 };
 MODULE_ALIAS_FS("binfmt_misc");
 




More information about the Devel mailing list