diff options
author | ed <ed@FreeBSD.org> | 2015-08-01 07:21:14 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2015-08-01 07:21:14 +0000 |
commit | 385a6dbe103dd390121f82f61ea3eea820e4efe8 (patch) | |
tree | 6aa7dc7a074eaff90d2fd464e02ca54be0aa85b9 /sys/sys/syscallsubr.h | |
parent | f8fda3f34a999b7111674a9a0a006a57bab057bd (diff) | |
download | FreeBSD-src-385a6dbe103dd390121f82f61ea3eea820e4efe8.zip FreeBSD-src-385a6dbe103dd390121f82f61ea3eea820e4efe8.tar.gz |
Add kern_shm_open().
This allows you to specify the capabilities that the new file descriptor
should have. This allows us to create shared memory objects that only
have the rights we're interested in.
The idea behind restricting the rights is that it makes it a lot easier
for CloudABI to get consistent behaviour across different operating
systems. We only need to make sure that a shared memory implementation
consistently implements the operations that are whitelisted.
Approved by: kib
Obtained from: https://github.com/NuxiNL/freebsd
Diffstat (limited to 'sys/sys/syscallsubr.h')
-rw-r--r-- | sys/sys/syscallsubr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h index f6f851b..579ac83 100644 --- a/sys/sys/syscallsubr.h +++ b/sys/sys/syscallsubr.h @@ -204,6 +204,8 @@ int kern_setsockopt(struct thread *td, int s, int level, int name, void *optval, enum uio_seg valseg, socklen_t valsize); int kern_settimeofday(struct thread *td, struct timeval *tv, struct timezone *tzp); +int kern_shm_open(struct thread *td, const char *userpath, int flags, + mode_t mode, struct filecaps *fcaps); int kern_shmat(struct thread *td, int shmid, const void *shmaddr, int shmflg); int kern_shmctl(struct thread *td, int shmid, int cmd, void *buf, |