aboutsummaryrefslogtreecommitdiffstats
path: root/man7/unix.7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2016-06-17 18:47:24 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-06-20 14:00:37 +0200
commit7578ea2f85b272363d22680d69e7d32f0b59c83b (patch)
treeba0131b437c50e98adddb26e7a61761b733aba41 /man7/unix.7
parentce552c68fb0a0920656d77dcfb0ddb8a9ff7a681 (diff)
downloadman-pages-7578ea2f85b272363d22680d69e7d32f0b59c83b.tar.gz
unix.7: Expand discussion of socket permissions
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
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.