Files
linux/fs/cifs
Steve French 9acbff2784 smb3: fix stat when special device file and mounted with modefromsid
commit 3c3317daef upstream.

When mounting with modefromsid mount option, it was possible to
get the error on stat of a fifo or char or block device:
        "cannot stat <filename>: Operation not supported"

Special devices can be stored as reparse points by some servers
(e.g. Windows NFS server and when using the SMB3.1.1 POSIX
Extensions) but when the modefromsid mount option is used
the client attempts to get the ACL for the file which requires
opening with OPEN_REPARSE_POINT create option.

Signed-off-by: Steve French <stfrench@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-10-29 10:10:58 +01:00
..
2020-10-29 10:10:57 +01:00
2020-06-01 00:10:18 -05:00
2020-08-28 12:27:33 -05:00
2020-06-01 00:10:18 -05:00
2020-07-09 10:06:52 -05:00
2020-08-02 18:00:25 -05:00
2020-06-01 00:10:18 -05:00
2019-09-24 23:31:32 -05:00
2019-01-24 09:37:33 -06:00
2020-08-02 18:00:25 -05:00