From 1a2da9c569393657e716341d0de1a0a7194a3cb0 Mon Sep 17 00:00:00 2001 From: rwatson Date: Thu, 13 Jul 2000 20:38:52 +0000 Subject: o Commit two of two, introducing __cap_{get,set}_{fd,file} syscalls to modify capability sets on files. Obtained from: TrustedBSD Project --- sys/sys/sysproto.h | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'sys/sys/sysproto.h') 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 -- cgit v1.1