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

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Wed Jun 23 13:08:17 MSK 2021



On 23.06.2021 12:57, Vasily Averin wrote:
> 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

Sure. In vz8 we use new FS_VE_MOUNT.

See d186104ce5ae ("fs/ve: add new FS_VE_MOUNT flag to allow mount in 
container init userns")

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

-- 
Best regards, Tikhomirov Pavel
Software Developer, Virtuozzo.


More information about the Devel mailing list