diff options
author | ed <ed@FreeBSD.org> | 2015-08-11 08:43:50 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2015-08-11 08:43:50 +0000 |
commit | 8fba8d3894b0df35e793695331271458e1478729 (patch) | |
tree | 5c95b3e9ef279a86b2e56c1f89deae1119029895 /sys/sys/syscallsubr.h | |
parent | 5b86b1c65a4a5e8eb458221a44ac021a802207d3 (diff) | |
download | FreeBSD-src-8fba8d3894b0df35e793695331271458e1478729.zip FreeBSD-src-8fba8d3894b0df35e793695331271458e1478729.tar.gz |
Introduce kern_cap_rights_limit().
The existing sys_cap_rights_limit() expects that a cap_rights_t object
lives in userspace. It is therefore hard to call into it from
kernelspace.
Move the interesting bits of sys_cap_rights_limit() into
kern_cap_rights_limit(), so that we can call into it from the CloudABI
compatibility layer.
Obtained from: https://github.com/NuxiNL/freebsd
Differential Revision: https://reviews.freebsd.org/D3314
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r-- | sys/sys/syscallsubr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h index ce68ba8..094a322 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -74,6 +74,7 @@ int kern_alternate_path(struct thread *td, const char *prefix, const char *path, int kern_bindat(struct thread *td, int dirfd, int fd, struct sockaddr *sa); int kern_cap_ioctls_limit(struct thread *td, int fd, u_long *cmds, size_t ncmds); +int kern_cap_rights_limit(struct thread *td, int fd, cap_rights_t *rights); int kern_chdir(struct thread *td, char *path, enum uio_seg pathseg); int kern_clock_getcpuclockid2(struct thread *td, id_t id, int which, clockid_t *clk_id); |