From 7f98a239831d9025f68fd11dbe071f37cad10f3d Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 20 Jun 2016 14:54:52 +0200 Subject: [PATCH] unix.7: Update text on socket permissions on other systems At least some of the modern BSDs seem to check for write permission on a socket. (I tested OpenBSD 5.9.) On Solaris 10, some light testing suggested that write permission is still not checked on that system. See https://bugzilla.kernel.org/show_bug.cgi?id=120061 (and https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-1999-1402) Reported-by: Carsten Grohmann Signed-off-by: Michael Kerrisk --- man7/unix.7 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man7/unix.7 b/man7/unix.7 index 7e6495692..82715f975 100644 --- a/man7/unix.7 +++ b/man7/unix.7 @@ -232,7 +232,7 @@ 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), +on a socket file, and on some systems (e.g., older BSDs), the socket permissions are ignored. Portable programs should not rely on this feature for security.