]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: set correct id, uid and cruid for multiuser automounts
authorPaulo Alcantara <pc@manguebit.com>
Sun, 11 Feb 2024 23:19:30 +0000 (20:19 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:25:13 +0000 (09:25 +0100)
commitc2aa2718cda2d56b4a551cb40043e9abc9684626
tree3d3577df002e860828951d242b0ae00099a67c32
parente5643b23cbb064dd3ef1388e933e0964130e048e
smb: client: set correct id, uid and cruid for multiuser automounts

commit 4508ec17357094e2075f334948393ddedbb75157 upstream.

When uid, gid and cruid are not specified, we need to dynamically
set them into the filesystem context used for automounting otherwise
they'll end up reusing the values from the parent mount.

Fixes: 9fd29a5bae6e ("cifs: use fs_context for automounts")
Reported-by: Shane Nehring <snehring@iastate.edu>
Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2259257
Cc: stable@vger.kernel.org # 6.2+
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/namespace.c