Skip to content

Commit b946dbc

Browse files
Ronnie Sahlbergsmfrench
authored andcommitted
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]>
1 parent 5ad4df5 commit b946dbc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fs/cifs/fs_context.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,13 @@ static int smb3_fs_context_parse_param(struct fs_context *fc,
925925
ctx->cred_uid = uid;
926926
ctx->cruid_specified = true;
927927
break;
928+
case Opt_backupuid:
929+
uid = make_kuid(current_user_ns(), result.uint_32);
930+
if (!uid_valid(uid))
931+
goto cifs_parse_mount_err;
932+
ctx->backupuid = uid;
933+
ctx->backupuid_specified = true;
934+
break;
928935
case Opt_backupgid:
929936
gid = make_kgid(current_user_ns(), result.uint_32);
930937
if (!gid_valid(gid))

0 commit comments

Comments
 (0)