mkdir -p d && python3 -c 'import socket; socket.socket(socket.AF_UNIX).bind("d/s")'
mv d /dev/shm/
The move fails, because the socket inside the directory goes through the regular file copy, which can't open it. FIFOs inside the directory are recreated with 0666 minus the umask instead of their own mode.
The move fails, because the socket inside the directory goes through the regular file copy, which can't open it. FIFOs inside the directory are recreated with 0666 minus the umask instead of their own mode.