cifs: fix DFS mount with cifsacl/modefromsid
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 3 Sep 2020 00:02:39 +0000 (10:02 +1000)
committerSteve French <stfrench@microsoft.com>
Mon, 7 Sep 2020 04:59:53 +0000 (23:59 -0500)
commit01ec372cef1e5afa4ab843bbaf88a6fcb64dc14c
treeafb5f351645c55c15d4a36c261aed29b6e769e47
parentf4d51dffc6c01a9e94650d95ce0104964f8ae822
cifs: fix DFS mount with cifsacl/modefromsid

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>
fs/cifs/inode.c