aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2003-11-16 20:21:21 +0000
committerRobert Watson <rwatson@FreeBSD.org>2003-11-16 20:21:21 +0000
commit237a5de859e2e0aec02d082804c88d9ee1f95be6 (patch)
tree3458fbd3627bc0b1372029075b50f280d9b9f77a
parent920325ee1da9e6c8d191ab0b2a3b11ee9a1831c0 (diff)
Notes
-rw-r--r--lib/libc/posix1e/mac_set.312
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/libc/posix1e/mac_set.3 b/lib/libc/posix1e/mac_set.3
index f674adc1e4468..175a25a11556e 100644
--- a/lib/libc/posix1e/mac_set.3
+++ b/lib/libc/posix1e/mac_set.3
@@ -63,15 +63,15 @@ to the file referenced to by
or to the file descriptor
.Fa fd ,
respectively.
-Note that this function will fail on socket descriptors.
-For information on
-setting MAC labels on socket descriptors see
-.Xr setsockopt 2 .
+Note that when a file descriptor references a socket, label operations
+on the file descriptor act on the socket, not on the file that may
+have been used as a rendezvous when binding the socket.
The
.Fn mac_set_link
function is the same as
.Fn mac_set_file ,
except that it does not follow symlinks.
+.Pp
The
.Fn mac_set_proc
function associates the MAC label
@@ -99,7 +99,9 @@ is not a valid file descriptor.
The
.Fa label
argument
-is not a valid MAC label.
+is not a valid MAC label, or the object referenced by
+.Fa fd
+is not appropriate for label operations.
.It Bq Er EOPNOTSUPP
Setting MAC labels is not supported
by the file referenced by