summaryrefslogtreecommitdiffstats
path: root/fs/smb/client/fs_context.h
diff options
context:
space:
mode:
authorTakayuki Nagata <tnagata@redhat.com>2024-04-15 16:47:49 +0900
committerSteve French <stfrench@microsoft.com>2024-04-22 10:50:31 -0500
commit77d8aa79ecfb209308e0644c02f655122b31def7 (patch)
tree1ad266108880bb06d2648f6a08b203fdfaf1fcb8 /fs/smb/client/fs_context.h
parent18d86965e31f9be4d477da0744a7cdc9815858de (diff)
downloadlinux-stable-77d8aa79ecfb209308e0644c02f655122b31def7.tar.gz
linux-stable-77d8aa79ecfb209308e0644c02f655122b31def7.tar.bz2
linux-stable-77d8aa79ecfb209308e0644c02f655122b31def7.zip
cifs: reinstate original behavior again for forceuid/forcegid
forceuid/forcegid should be enabled by default when uid=/gid= options are specified, but commit 24e0a1eff9e2 ("cifs: switch to new mount api") changed the behavior. Due to the change, a mounted share does not show intentional uid/gid for files and directories even though uid=/gid= options are specified since forceuid/forcegid are not enabled. This patch reinstates original behavior that overrides uid/gid with specified uid/gid by the options. Fixes: 24e0a1eff9e2 ("cifs: switch to new mount api") Signed-off-by: Takayuki Nagata <tnagata@redhat.com> Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.com> Acked-by: Ronnie Sahlberg <lsahlber@redhat.com> Acked-by: Tom Talpey <tom@talpey.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/client/fs_context.h')
-rw-r--r--fs/smb/client/fs_context.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/smb/client/fs_context.h b/fs/smb/client/fs_context.h
index a947bddeba27..cf577ec0dd0a 100644
--- a/fs/smb/client/fs_context.h
+++ b/fs/smb/client/fs_context.h
@@ -165,6 +165,8 @@ enum cifs_param {
};
struct smb3_fs_context {
+ bool forceuid_specified;
+ bool forcegid_specified;
bool uid_specified;
bool cruid_specified;
bool gid_specified;