]> git.ipfire.org Git - people/arne_f/kernel.git/commit
cifs: fix DFS mount with cifsacl/modefromsid
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 3 Sep 2020 00:02:39 +0000 (10:02 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Sep 2020 10:40:36 +0000 (12:40 +0200)
commit5dda8b9b6ad7192ababf77c3a9150314b5f01ac4
tree26d9e41b4262b6d8d3bc5944083b16374864c450
parent72efc1488dadd650a75520cc58dcebf9564e4603
cifs: fix DFS mount with cifsacl/modefromsid

[ Upstream commit 01ec372cef1e5afa4ab843bbaf88a6fcb64dc14c ]

RHBZ: 1871246

If during cifs_lookup()/get_inode_info() we encounter a DFS link
and we use the cifsacl or modefromsid mount options we must suppress
any -EREMOTE errors that triggers or else we will not be able to follow
the DFS link and automount the target.

This fixes an issue with modefromsid/cifsacl where these mountoptions
would break DFS and we would no longer be able to access the share.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/inode.c