[Devel] [PATCH RH8] ve/nfsd: allow nfsd mount inside container init userns

Vasily Averin vvs at virtuozzo.com
Wed Jun 23 12:57:14 MSK 2021


On 6/23/21 12:50 PM, Pavel Tikhomirov wrote:
> https://jira.sw.ru/browse/PSBM-130825
> 
> Fixes: 92cc82cd5998 ("ve/fs/nfsd: NFSd containerization")
> Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
> ---
>  fs/nfsd/nfsctl.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/nfsd/nfsctl.c b/fs/nfsd/nfsctl.c
> index ae928c0d0dc8..cab0e75e4294 100644
> --- a/fs/nfsd/nfsctl.c
> +++ b/fs/nfsd/nfsctl.c
> @@ -1411,7 +1411,7 @@ static struct file_system_type nfsd_fs_type = {
>  	.name		= "nfsd",
>  	.mount		= nfsd_mount,
>  	.kill_sb	= nfsd_umount,
> -	.fs_flags	= FS_VIRTUALIZED,
> +	.fs_flags	= FS_VIRTUALIZED|FS_VE_MOUNT,

in vz7 we use FS_USERNS_MOUNT

>  };
>  MODULE_ALIAS_FS("nfsd");
>  
> 



More information about the Devel mailing list