aboutsummaryrefslogtreecommitdiffstats
path: root/man7/unix.7
diff options
context:
space:
mode:
Diffstat (limited to 'man7/unix.7')
-rw-r--r--man7/unix.710
1 files changed, 7 insertions, 3 deletions
diff --git a/man7/unix.7 b/man7/unix.7
index 804ed20cfb..5c9c1e89db 100644
--- a/man7/unix.7
+++ b/man7/unix.7
@@ -506,9 +506,13 @@ filesystem honor the permissions of the directory they are in.
Creation of a new socket will fail if the process does not have write and
search (execute) permission on the directory the socket is created in.
-Connecting to a stream socket object requires write permission.
-This behavior differs from many BSD-derived systems,
-which ignore permissions for UNIX domain sockets.
+On Linux,
+connecting to a stream socket object requires write permission on that socket;
+sending a datagram to a datagram socket likewise
+requires write permission on that socket.
+POSIX does not make any statement about the effect of the permissions
+on a socket file, and on many systems (e.g., several BSD derivatives),
+the socket permissions are ignored.
Portable programs should not rely on
this feature for security.