mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
cifs: add missing parsing of backupuid
We lost parsing of backupuid in the switch to new mount API. Add it back. Signed-off-by: Ronnie Sahlberg <[email protected]> Reviewed-by: Shyam Prasad N <[email protected]> Cc: <[email protected]> # v5.11+ Reported-by: Xiaoli Feng <[email protected]> Signed-off-by: Steve French <[email protected]>
This commit is contained in:
committed by
Steve French
parent
5ad4df56cd
commit
b946dbcfa4
@@ -925,6 +925,13 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
|
||||
ctx->cred_uid = uid;
|
||||
ctx->cruid_specified = true;
|
||||
break;
|
||||
case Opt_backupuid:
|
||||
uid = make_kuid(current_user_ns(), result.uint_32);
|
||||
if (!uid_valid(uid))
|
||||
goto cifs_parse_mount_err;
|
||||
ctx->backupuid = uid;
|
||||
ctx->backupuid_specified = true;
|
||||
break;
|
||||
case Opt_backupgid:
|
||||
gid = make_kgid(current_user_ns(), result.uint_32);
|
||||
if (!gid_valid(gid))
|
||||
|
||||
Reference in New Issue
Block a user