[RH7] enable rpc_pipefs mounts inside user namespaces

Submitted by Vasily Averin on July 5, 2018, 2:57 p.m.

Details

Message ID fc099809-c2b7-7818-d529-f25adaea5dbb@virtuozzo.com
State New
Series "enable rpc_pipefs mounts inside user namespaces"
Headers show

Commit Message

Vasily Averin July 5, 2018, 2:57 p.m.
this patch enables rpc_pipefs mounts inside containers,
required for nfsd in SLES11

https://jira.sw.ru/browse/PSBM-86395
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>

Patch hide | download patch | download mbox

diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c
index 7dc74c0ef4ef..acdc3478d728 100644
--- a/net/sunrpc/rpc_pipe.c
+++ b/net/sunrpc/rpc_pipe.c
@@ -1487,7 +1487,7 @@  static struct file_system_type rpc_pipe_fs_type = {
 	.name		= "rpc_pipefs",
 	.mount		= rpc_mount,
 	.kill_sb	= rpc_kill_sb,
-	.fs_flags	= FS_VIRTUALIZED,
+	.fs_flags	= FS_VIRTUALIZED|FS_USERNS_MOUNT,
 };
 MODULE_ALIAS_FS("rpc_pipefs");
 MODULE_ALIAS("rpc_pipefs");