summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/Makefile.inc
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2013-03-02 00:11:27 +0000
committerpjd <pjd@FreeBSD.org>2013-03-02 00:11:27 +0000
commit24853370053f911de81d645be20801b842a3dda9 (patch)
tree9d80e9daf2d81c1841914be005090b2875ad59a1 /lib/libc/gen/Makefile.inc
parent3e4a1731aa17cbd6fdf9c9def3c5eb9b47353aa1 (diff)
downloadFreeBSD-src-24853370053f911de81d645be20801b842a3dda9.zip
FreeBSD-src-24853370053f911de81d645be20801b842a3dda9.tar.gz
Provide cap_sandboxed(3) function, which is a wrapper around cap_getmode(2)
system call, which has a nice property - it never fails, so it is a bit easier to use. If there is no support for capability mode in the kernel the function will return false (not in a sandbox). If the kernel is compiled with the support for capability mode, the function will return true or false depending if the calling process is in the capability mode sandbox or not respectively. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'lib/libc/gen/Makefile.inc')
-rw-r--r--lib/libc/gen/Makefile.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/gen/Makefile.inc b/lib/libc/gen/Makefile.inc
index 711cbff..89689a0 100644
--- a/lib/libc/gen/Makefile.inc
+++ b/lib/libc/gen/Makefile.inc
@@ -16,6 +16,7 @@ SRCS+= __getosreldate.c \
assert.c \
auxv.c \
basename.c \
+ cap_sandboxed.c \
check_utility_compat.c \
clock.c \
clock_getcpuclockid.c \
@@ -168,6 +169,7 @@ SYM_MAPS+=${.CURDIR}/gen/Symbol.map
MAN+= alarm.3 \
arc4random.3 \
basename.3 \
+ cap_sandboxed.3 \
check_utility_compat.3 \
clock.3 \
clock_getcpuclockid.3 \
OpenPOWER on IntegriCloud