summaryrefslogtreecommitdiffstats
path: root/lib/libc/posix1e/mac_set.3
diff options
context:
space:
mode:
authorchris <chris@FreeBSD.org>2003-01-14 23:20:40 +0000
committerchris <chris@FreeBSD.org>2003-01-14 23:20:40 +0000
commit541ffd166f2cfdf86201463c76935f7459b38be2 (patch)
treedae9e008bddb563dd42d72666b62af7cdc89a871 /lib/libc/posix1e/mac_set.3
parent678fc82bcf2ec81eca4ecd9233b9a9031acd9b96 (diff)
downloadFreeBSD-src-541ffd166f2cfdf86201463c76935f7459b38be2.zip
FreeBSD-src-541ffd166f2cfdf86201463c76935f7459b38be2.tar.gz
o Remove clause #3
o Document mac_set_link(). Sponsored by: DARPA, Network Associates Labs
Diffstat (limited to 'lib/libc/posix1e/mac_set.3')
-rw-r--r--lib/libc/posix1e/mac_set.314
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libc/posix1e/mac_set.3 b/lib/libc/posix1e/mac_set.3
index d087412..3f15726 100644
--- a/lib/libc/posix1e/mac_set.3
+++ b/lib/libc/posix1e/mac_set.3
@@ -15,9 +15,6 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
-.\" 3. The name of the author may not be used to endorse or promote
-.\" products derived from this software without specific prior written
-.\" permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -33,7 +30,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd December 21, 2001
+.Dd January 14, 2003
.Dt MAC_SET 3
.Os
.Sh NAME
@@ -46,7 +43,9 @@
.Sh SYNOPSIS
.In sys/mac.h
.Ft int
-.Fn mac_set_file "const char *path_p" "mac_t label"
+.Fn mac_set_file "const char *path" "mac_t label"
+.Ft int
+.Fn mac_set_link "const char *path" "mac_t label"
.Ft int
.Fn mac_set_fd "int fd" "mac_t label"
.Ft int
@@ -69,6 +68,11 @@ For information on
setting MAC labels on socket descriptors see
.Xr setsockopt 2 .
The
+.Fn mac_set_link
+function is the same as
+.Fn mac_set_file ,
+except that it does not follow symlinks.
+The
.Fn mac_set_proc
function associates the MAC label
specified by
OpenPOWER on IntegriCloud