diff options
| author | Robert Watson <rwatson@FreeBSD.org> | 2004-06-17 16:08:36 +0000 |
|---|---|---|
| committer | Robert Watson <rwatson@FreeBSD.org> | 2004-06-17 16:08:36 +0000 |
| commit | 804613dc06d1b863786a0c180961a4a31d82ba1c (patch) | |
| tree | ef49927f3cc64080e8e58971bfb4607df221bbc8 /lib/libc | |
| parent | d8a921c7751457eb4b65dd92c73d5ad89cfa9aaa (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/posix1e/Makefile.inc | 1 | ||||
| -rw-r--r-- | lib/libc/posix1e/mac_get.3 | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/libc/posix1e/Makefile.inc b/lib/libc/posix1e/Makefile.inc index b502255b7e41..872b6ae48819 100644 --- a/lib/libc/posix1e/Makefile.inc +++ b/lib/libc/posix1e/Makefile.inc @@ -75,6 +75,7 @@ MLINKS+=acl_delete.3 acl_delete_def_file.3 \ extattr.3 extattr_string_to_namespace.3 \ mac_get.3 mac_get_fd.3 \ mac_get.3 mac_get_file.3 \ + mac_get.3 mac_get_link.3 \ mac_get.3 mac_get_pid.3 \ mac_get.3 mac_get_proc.3 \ mac_prepare.3 mac_prepare_file_label.3 \ diff --git a/lib/libc/posix1e/mac_get.3 b/lib/libc/posix1e/mac_get.3 index 9cfd03b6f4c5..96e068802266 100644 --- a/lib/libc/posix1e/mac_get.3 +++ b/lib/libc/posix1e/mac_get.3 @@ -1,4 +1,4 @@ -.\" Copyright (c) 2001 Networks Associates Technology, Inc. +.\" Copyright (c) 2001, 2004 Networks Associates Technology, Inc. .\" All rights reserved. .\" .\" This software was developed for the FreeBSD Project by Chris @@ -35,6 +35,7 @@ .Os .Sh NAME .Nm mac_get_file , +.Nm mac_get_link , .Nm mac_get_fd , .Nm mac_get_proc .Nd get the label of a file, socket, socket peer or process @@ -45,6 +46,8 @@ .Ft int .Fn mac_get_file "const char *path" "mac_t label" .Ft int +.Fn mac_get_link "const char *path" "mac_t label" +.Ft int .Fn mac_get_fd "int fd" "mac_t label" .Ft int .Fn mac_get_peer "int fd" "mac_t label" @@ -57,6 +60,11 @@ The .Fn mac_get_file system call returns the label associated with a file specified by pathname. +The +.Fn mac_get_link +function is the same as +.Fn mac_get_file , +except that it does not follow symlinks. .Pp The .Fn mac_get_fd |
