[Devel] [PATCH RHEL8 COMMIT] ve/fs/nfs: NFS containerization - remove excess current_user_ns_initial
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Aug 27 20:47:56 MSK 2021
The commit is pushed to "branch-rh8-4.18.0-305.3.1.vz8.7.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-305.3.1.vz8.7.10
------>
commit f91b8536610b5017715824d4d8e9b411c0207ae9
Author: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
Date: Fri Aug 27 20:47:56 2021 +0300
ve/fs/nfs: NFS containerization - remove excess current_user_ns_initial
Now when we use FS_VE_MOUNT for nfs instead of FS_USERNS_MOUNT we
already have a check that nfs can be mounted only from initial userns.
https://jira.sw.ru/browse/PSBM-131949
Fixes: f1c852869b95 ("ve/fs/nfs: NFS containerization")
Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
fs/nfs/fs_context.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/fs/nfs/fs_context.c b/fs/nfs/fs_context.c
index 9eed176870ee..68efb1e9b143 100644
--- a/fs/nfs/fs_context.c
+++ b/fs/nfs/fs_context.c
@@ -1364,8 +1364,6 @@ static int nfs_init_fs_context(struct fs_context *fc)
if (!(get_exec_env()->features & VE_FEATURE_NFS))
return -ENODEV;
- if (!current_user_ns_initial())
- return -EPERM;
ctx = kzalloc(sizeof(struct nfs_fs_context), GFP_KERNEL);
if (unlikely(!ctx))
More information about the Devel
mailing list