]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cifs: reinstate original behavior again for forceuid/forcegid
authorTakayuki Nagata <tnagata@redhat.com>
Mon, 15 Apr 2024 07:47:49 +0000 (16:47 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:32:30 +0000 (16:32 +0200)
commitfc1860a1bf6cf0caae4d92ba14c7d99260852db4
tree33dffe3fd57e5735d379141cb512d89019b889e1
parent551496743a5704dff0ffb3e8e0cf0e7211b07941
cifs: reinstate original behavior again for forceuid/forcegid

[ Upstream commit 77d8aa79ecfb209308e0644c02f655122b31def7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/fs_context.c
fs/smb/client/fs_context.h