o Introduce syscall prototypes, stubs for __cap_{get,set}_{fd,file},
syscalls to manage capability sets on files. First of two commits. Obtained from: TrustedBSD Project
This commit is contained in:
parent
73acacf4ca
commit
92eebb8a9b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63082
@ -64,3 +64,35 @@ __cap_set_proc(struct proc *p, struct __cap_set_proc_args *uap)
|
||||
|
||||
return (ENOSYS);
|
||||
}
|
||||
|
||||
/*
|
||||
* Syscalls to allow a process to retrieve capabilities associated with
|
||||
* files, if permitted.
|
||||
*/
|
||||
__cap_get_fd(struct proc *p, struct __cap_get_fd_args *uap)
|
||||
{
|
||||
|
||||
return (ENOSYS);
|
||||
}
|
||||
|
||||
__cap_get_file(struct proc *p, struct __cap_get_file_args *uap)
|
||||
{
|
||||
|
||||
return (ENOSYS);
|
||||
}
|
||||
|
||||
/*
|
||||
* Syscalls to allow a process to set capabilities associated with files,
|
||||
* if permitted.
|
||||
*/
|
||||
__cap_set_fd(struct proc *p, struct __cap_set_fd_args *uap)
|
||||
{
|
||||
|
||||
return (ENOSYS);
|
||||
}
|
||||
|
||||
__cap_set_file(struct proc *p, struct __cap_set_file_args *uap)
|
||||
{
|
||||
|
||||
return (ENOSYS);
|
||||
}
|
||||
|
@ -522,3 +522,7 @@
|
||||
struct timespec *timeout); }
|
||||
364 STD BSD { int __cap_get_proc(struct cap *cap_p); }
|
||||
365 STD BSD { int __cap_set_proc(struct cap *cap_p); }
|
||||
366 STD BSD { int __cap_get_fd(int fd, struct cap *cap_p); }
|
||||
367 STD BSD { int __cap_get_file(const char *path_p, struct cap *cap_p); }
|
||||
368 STD BSD { int __cap_set_fd(int fd, struct cap *cap_p); }
|
||||
369 STD BSD { int __cap_set_file(const char *path_p, struct cap *cap_p); }
|
||||
|
Loading…
Reference in New Issue
Block a user