diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-06-17 18:47:24 +0200 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2016-06-20 14:00:37 +0200 |
| commit | 7578ea2f85b272363d22680d69e7d32f0b59c83b (patch) | |
| tree | ba0131b437c50e98adddb26e7a61761b733aba41 /man7/unix.7 | |
| parent | ce552c68fb0a0920656d77dcfb0ddb8a9ff7a681 (diff) | |
| download | man-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.7 | 10 |
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. |
