367a13f905
On CloudABI, the rights bits returned by cap_rights_get() match up with the operations that you can actually perform on the file descriptor. Limiting the rights is good, because it makes it easier to get uniform behaviour across different operating systems. If process descriptors on FreeBSD would suddenly gain support for any new file operation, this wouldn't become exposed to CloudABI processes without first extending the rights. Extend fork1() to gain a 'struct filecaps' argument that allows you to construct process descriptors with custom rights. Use this in cloudabi_sys_proc_fork() to limit the rights to just fstat() and pdwait(). Obtained from: https://github.com/NuxiNL/freebsd |
||
---|---|---|
.. | ||
check_error.d | ||
check_internal_locks.d | ||
linux_common.c | ||
linux_dtrace.h | ||
linux_emul.c | ||
linux_emul.h | ||
linux_event.c | ||
linux_event.h | ||
linux_file.c | ||
linux_file.h | ||
linux_fork.c | ||
linux_futex.c | ||
linux_futex.h | ||
linux_getcwd.c | ||
linux_ioctl.c | ||
linux_ioctl.h | ||
linux_ipc.c | ||
linux_ipc.h | ||
linux_mib.c | ||
linux_mib.h | ||
linux_misc.c | ||
linux_misc.h | ||
linux_signal.c | ||
linux_signal.h | ||
linux_socket.c | ||
linux_socket.h | ||
linux_stats.c | ||
linux_sysctl.c | ||
linux_sysproto.h | ||
linux_time.c | ||
linux_timer.c | ||
linux_timer.h | ||
linux_uid16.c | ||
linux_util.c | ||
linux_util.h | ||
linux_vdso.c | ||
linux_vdso.h | ||
linux_videodev2_compat.h | ||
linux_videodev_compat.h | ||
linux.c | ||
linux.h | ||
stats_timing.d | ||
trace_futexes.d |