linux/fs/smb/client
Steve French 9d96ac07ae smb3: fix creating FIFOs when mounting with "sfu" mount option
commit 72bc63f5e2 upstream.

Fixes some xfstests including generic/564 and generic/157

The "sfu" mount option can be useful for creating special files (character
and block devices in particular) but could not create FIFOs. It did
recognize existing empty files with the "system" attribute flag as FIFOs
but this is too general, so to support creating FIFOs more safely use a new
tag (but the same length as those for char and block devices ie "IntxLNK"
and "IntxBLK") "LnxFIFO" to indicate that the file should be treated as a
FIFO (when mounted with the "sfu").   For some additional context note that
"sfu" followed the way that "Services for Unix" on Windows handled these
special files (at least for character and block devices and symlinks),
which is different than newer Windows which can handle special files
as reparse points (which isn't an option to many servers).

Cc: stable@vger.kernel.org
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-28 17:07:15 +00:00
..
asn1.c
cached_dir.c cifs: update desired access while requesting for directory lease 2023-09-19 12:27:57 +02:00
cached_dir.h
cifs_debug.c
cifs_debug.h
cifs_dfs_ref.c cifs: use fs_context for automounts 2023-09-19 12:28:00 +02:00
cifs_fs_sb.h
cifs_ioctl.h
cifs_spnego_negtokeninit.asn1
cifs_spnego.c cifs: spnego: add ';' in HOST_KEY_LEN 2023-11-28 17:07:06 +00:00
cifs_spnego.h
cifs_swn.c
cifs_swn.h
cifs_unicode.c
cifs_unicode.h
cifs_uniupr.h
cifsacl.c
cifsacl.h
cifsencrypt.c
cifsfs.c smb: client: fix warning in cifs_smb3_do_mount() 2023-08-23 17:52:22 +02:00
cifsfs.h
cifsglob.h cifs: Fix UAF in cifs_demultiplex_thread() 2023-10-06 14:56:42 +02:00
cifspdu.h smb3: fix creating FIFOs when mounting with "sfu" mount option 2023-11-28 17:07:15 +00:00
cifsproto.h cifs: fix sockaddr comparison in iface_cmp 2023-09-13 09:42:25 +02:00
cifsroot.c
cifssmb.c
connect.c smb: use kernel_connect() and kernel_bind() 2023-10-10 22:00:44 +02:00
dfs_cache.c
dfs_cache.h
dir.c
dns_resolve.c
dns_resolve.h
export.c
file.c cifs: Release folio lock on fscache read hit. 2023-08-23 17:52:39 +02:00
fs_context.c fs/smb/client: Reset password pointer to NULL 2023-10-06 14:57:05 +02:00
fs_context.h
fscache.c smb: propagate error code of extract_sharename() 2023-09-19 12:28:00 +02:00
fscache.h
inode.c smb3: fix creating FIFOs when mounting with "sfu" mount option 2023-11-28 17:07:15 +00:00
ioctl.c
Kconfig
link.c
Makefile
misc.c
netlink.c
netlink.h
netmisc.c
nterr.c
nterr.h
ntlmssp.h
readdir.c
rfc1002pdu.h
sess.c smb3: do not set NTLMSSP_VERSION flag for negotiate not auth request 2023-08-03 10:24:04 +02:00
smb1ops.c
smb2file.c
smb2glob.h
smb2inode.c smb: client: fix broken file attrs with nodfs mounts 2023-07-19 16:21:44 +02:00
smb2maperror.c
smb2misc.c
smb2ops.c smb3: fix creating FIFOs when mounting with "sfu" mount option 2023-11-28 17:07:15 +00:00
smb2pdu.c send channel sequence number in SMB3 requests after reconnects 2023-09-19 12:27:56 +02:00
smb2pdu.h
smb2proto.h
smb2status.h
smb2transport.c cifs: fix check of rc in function generate_smb3signingkey 2023-11-28 17:07:07 +00:00
smbdirect.c
smbdirect.h
smbencrypt.c
smberr.h
trace.c
trace.h
transport.c cifs: Fix UAF in cifs_demultiplex_thread() 2023-10-06 14:56:42 +02:00
unc.c
winucase.c
xattr.c