From e4ee15b13f33093e8752f6332c452b52130894cc Mon Sep 17 00:00:00 2001 From: Chris Costello Date: Tue, 14 Jan 2003 23:20:40 +0000 Subject: [PATCH] o Remove clause #3 o Document mac_set_link(). Sponsored by: DARPA, Network Associates Labs --- lib/libc/posix1e/mac_set.3 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/libc/posix1e/mac_set.3 b/lib/libc/posix1e/mac_set.3 index d08741282ff7..3f15726c8c68 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