summaryrefslogtreecommitdiffstats
path: root/sys/sys/sysproto.h
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2000-07-13 20:38:52 +0000
committerrwatson <rwatson@FreeBSD.org>2000-07-13 20:38:52 +0000
commit1a2da9c569393657e716341d0de1a0a7194a3cb0 (patch)
tree80b672c3d38305575fa192ef2156bfe6e9b06c63 /sys/sys/sysproto.h
parentd8fbcbd787338261d16d69869a895993583c0c65 (diff)
downloadFreeBSD-src-1a2da9c569393657e716341d0de1a0a7194a3cb0.zip
FreeBSD-src-1a2da9c569393657e716341d0de1a0a7194a3cb0.tar.gz
o Commit two of two, introducing __cap_{get,set}_{fd,file} syscalls to
modify capability sets on files. Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/sys/sysproto.h')
-rw-r--r--sys/sys/sysproto.h22
1 files changed, 21 insertions, 1 deletions
diff --git a/sys/sys/sysproto.h b/sys/sys/sysproto.h
index ae2467b..0ead29f 100644
--- a/sys/sys/sysproto.h
+++ b/sys/sys/sysproto.h
@@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
- * created from FreeBSD: src/sys/kern/syscalls.master,v 1.77 2000/06/15 23:08:17 rwatson Exp
+ * created from FreeBSD: src/sys/kern/syscalls.master,v 1.78 2000/07/13 20:31:24 rwatson Exp
*/
#ifndef _SYS_SYSPROTO_H_
@@ -1027,6 +1027,22 @@ struct __cap_get_proc_args {
struct __cap_set_proc_args {
struct cap * cap_p; char cap_p_[PAD_(struct cap *)];
};
+struct __cap_get_fd_args {
+ int fd; char fd_[PAD_(int)];
+ struct cap * cap_p; char cap_p_[PAD_(struct cap *)];
+};
+struct __cap_get_file_args {
+ const char * path_p; char path_p_[PAD_(const char *)];
+ struct cap * cap_p; char cap_p_[PAD_(struct cap *)];
+};
+struct __cap_set_fd_args {
+ int fd; char fd_[PAD_(int)];
+ struct cap * cap_p; char cap_p_[PAD_(struct cap *)];
+};
+struct __cap_set_file_args {
+ const char * path_p; char path_p_[PAD_(const char *)];
+ struct cap * cap_p; char cap_p_[PAD_(struct cap *)];
+};
int nosys __P((struct proc *, struct nosys_args *));
void exit __P((struct proc *, struct rexit_args *)) __dead2;
int fork __P((struct proc *, struct fork_args *));
@@ -1260,6 +1276,10 @@ int kqueue __P((struct proc *, struct kqueue_args *));
int kevent __P((struct proc *, struct kevent_args *));
int __cap_get_proc __P((struct proc *, struct __cap_get_proc_args *));
int __cap_set_proc __P((struct proc *, struct __cap_set_proc_args *));
+int __cap_get_fd __P((struct proc *, struct __cap_get_fd_args *));
+int __cap_get_file __P((struct proc *, struct __cap_get_file_args *));
+int __cap_set_fd __P((struct proc *, struct __cap_set_fd_args *));
+int __cap_set_file __P((struct proc *, struct __cap_set_file_args *));
#ifdef COMPAT_43
OpenPOWER on IntegriCloud