cifs: fix creating sockets when using sfu mount options
authorSteve French <stfrench@microsoft.com>
Wed, 29 May 2024 23:16:56 +0000 (18:16 -0500)
committerSteve French <stfrench@microsoft.com>
Fri, 31 May 2024 15:55:15 +0000 (10:55 -0500)
commit518549c120e671c4906f77d1802b97e9b23f673a
tree32a18d87ef1df63612c23274f429ce654027bce8
parent9ee267a29309233b9ef8f58ee61e0b1c9b5879e8
cifs: fix creating sockets when using sfu mount options

When running fstest generic/423 with sfu mount option, it
was being skipped due to inability to create sockets:

  generic/423  [not run] cifs does not support mknod/mkfifo

which can also be easily reproduced with their af_unix tool:

  ./src/af_unix /mnt1/socket-two bind: Operation not permitted

Fix sfu mount option to allow creating and reporting sockets.

Cc: stable@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifspdu.h
fs/smb/client/inode.c
fs/smb/client/smb2ops.c