]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: Do not use the original cruid when following DFS links for multiuser mounts
authorRonnie Sahlberg <lsahlber@redhat.com>
Tue, 13 Jul 2021 02:22:59 +0000 (12:22 +1000)
committerSteve French <stfrench@microsoft.com>
Wed, 14 Jul 2021 15:06:33 +0000 (10:06 -0500)
commitfd1b390fa966e4affdc387503f90a129472db8a3
tree9d2fa03b9efba7f24a45742cf2250aff51aa3809
parentc8e886b7dd7a0be4d416f5db64aeb060ad305853
cifs: Do not use the original cruid when following DFS links for multiuser mounts

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=213565

cruid should only be used for the initial mount and after this we should use the current
users credentials.
Ignore the original cruid mount argument when creating a new context for a multiuser mount
following a DFS link.

Fixes: 84e70c69068d ("cifs: switch to new mount api")
Cc: stable@vger.kernel.org # 5.11+
Reported-by: Xiaoli Feng <xifeng@redhat.com>
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifs_dfs_ref.c