summaryrefslogtreecommitdiffstats
path: root/sys/sys/capability.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-07-05 04:20:59 +0000
committerrwatson <rwatson@FreeBSD.org>2000-07-05 04:20:59 +0000
commit111a0a6e967ed1dfe51f95fe74682905c8f01aec (patch)
tree16b0421f3d56195a8741fef0e7eee01dde1e7ef0 /sys/sys/capability.h
parent377c3393c91a0dee24defc0a7d98d20b2ddb956b (diff)
downloadFreeBSD-src-111a0a6e967ed1dfe51f95fe74682905c8f01aec.zip
FreeBSD-src-111a0a6e967ed1dfe51f95fe74682905c8f01aec.tar.gz
o Introduce cap_{get,set}_{file,fd}() syscall wrappers, associated with
soon to be committed syscall stubs. These calls will be used to get and set capability state associated with executables. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/sys/capability.h')
-rw-r--r--sys/sys/capability.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/capability.h b/sys/sys/capability.h
index a96cf5e..82adfc3 100644
--- a/sys/sys/capability.h
+++ b/sys/sys/capability.h
@@ -173,6 +173,10 @@ typedef _BSD_SSIZE_T_ ssize_t;
int __cap_get_proc(struct cap *);
int __cap_set_proc(struct cap *);
+int __cap_get_fd(int, struct cap *);
+int __cap_get_file(const char *, struct cap *);
+int __cap_set_fd(int, struct cap *);
+int __cap_set_file(const char *, struct cap *);
int cap_clear(cap_t);
ssize_t cap_copy_ext(void *, cap_t, ssize_t);
OpenPOWER on IntegriCloud