1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-28 16:43:09 +00:00

Second of two commits adding capability manipulation syscalls for

processes.

Obtained from:	TrustedBSD Project
This commit is contained in:
Robert Watson 2000-06-15 23:27:18 +00:00
parent b09b66abf6
commit 625cc84808
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61719
6 changed files with 26 additions and 8 deletions

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.76 2000/05/09 08:31:06 bde Exp
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.77 2000/06/15 23:08:17 rwatson Exp
*/
#include "opt_compat.h"
@ -386,4 +386,6 @@ struct sysent sysent[] = {
{ AS(getresgid_args), (sy_call_t *)getresgid }, /* 361 = getresgid */
{ 0, (sy_call_t *)kqueue }, /* 362 = kqueue */
{ AS(kevent_args), (sy_call_t *)kevent }, /* 363 = kevent */
{ AS(__cap_get_proc_args), (sy_call_t *)__cap_get_proc }, /* 364 = __cap_get_proc */
{ AS(__cap_set_proc_args), (sy_call_t *)__cap_set_proc }, /* 365 = __cap_set_proc */
};

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.76 2000/05/09 08:31:06 bde Exp
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.77 2000/06/15 23:08:17 rwatson Exp
*/
char *syscallnames[] = {
@ -371,4 +371,6 @@ char *syscallnames[] = {
"getresgid", /* 361 = getresgid */
"kqueue", /* 362 = kqueue */
"kevent", /* 363 = kevent */
"__cap_get_proc", /* 364 = __cap_get_proc */
"__cap_set_proc", /* 365 = __cap_set_proc */
};

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.76 2000/05/09 08:31:06 bde Exp
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.77 2000/06/15 23:08:17 rwatson Exp
*/
HIDE_POSIX(fork)
@ -280,3 +280,5 @@ HIDE_BSD(getresuid)
HIDE_BSD(getresgid)
HIDE_BSD(kqueue)
HIDE_BSD(kevent)
HIDE_BSD(__cap_get_proc)
HIDE_BSD(__cap_set_proc)

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.76 2000/05/09 08:31:06 bde Exp
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.77 2000/06/15 23:08:17 rwatson Exp
*/
#define SYS_syscall 0
@ -285,4 +285,6 @@
#define SYS_getresgid 361
#define SYS_kqueue 362
#define SYS_kevent 363
#define SYS_MAXSYSCALL 364
#define SYS___cap_get_proc 364
#define SYS___cap_set_proc 365
#define SYS_MAXSYSCALL 366

View File

@ -1,7 +1,7 @@
# FreeBSD system call names.
# DO NOT EDIT-- this file is automatically generated.
# $FreeBSD$
# created from FreeBSD: src/sys/kern/syscalls.master,v 1.76 2000/05/09 08:31:06 bde Exp
# created from FreeBSD: src/sys/kern/syscalls.master,v 1.77 2000/06/15 23:08:17 rwatson Exp
MIASM = \
syscall.o \
exit.o \
@ -235,4 +235,6 @@ MIASM = \
getresuid.o \
getresgid.o \
kqueue.o \
kevent.o
kevent.o \
__cap_get_proc.o \
__cap_set_proc.o

View File

@ -3,7 +3,7 @@
*
* DO NOT EDIT-- this file is automatically generated.
* $FreeBSD$
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.76 2000/05/09 08:31:06 bde Exp
* created from FreeBSD: src/sys/kern/syscalls.master,v 1.77 2000/06/15 23:08:17 rwatson Exp
*/
#ifndef _SYS_SYSPROTO_H_
@ -1021,6 +1021,12 @@ struct kevent_args {
struct kevent * eventlist; char eventlist_[PAD_(struct kevent *)];
struct timespec * timeout; char timeout_[PAD_(struct timespec *)];
};
struct __cap_get_proc_args {
struct cap * cap_p; char cap_p_[PAD_(struct cap *)];
};
struct __cap_set_proc_args {
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 *));
@ -1252,6 +1258,8 @@ int getresuid __P((struct proc *, struct getresuid_args *));
int getresgid __P((struct proc *, struct getresgid_args *));
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 *));
#ifdef COMPAT_43