[RHEL7,COMMIT] ve/sunrpc: enable rpc_pipefs mounts inside non-init user namespaces

Submitted by Konstantin Khorenko on July 6, 2018, 9:07 a.m.

Details

Message ID 201807060907.w6697SLK014824@finist_ce7.work
State New
Series "enable rpc_pipefs mounts inside user namespaces"
Headers show

Commit Message

Konstantin Khorenko July 6, 2018, 9:07 a.m.
The commit is pushed to "branch-rh7-3.10.0-862.3.2.vz7.61.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.3.2.vz7.61.15
------>
commit a7fd40b066a8ebe0fbcdd80a4a950633ed3d6cd6
Author: Vasily Averin <vvs@virtuozzo.com>
Date:   Fri Jul 6 12:07:27 2018 +0300

    ve/sunrpc: enable rpc_pipefs mounts inside non-init user namespaces
    
    This patch enables rpc_pipefs mounts inside Containers,
    required for nfsd in SLES11-based Containers.
    
    https://jira.sw.ru/browse/PSBM-86395
    Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
---
 net/sunrpc/rpc_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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");