freebsd-skq/sys/compat/linux
Ed Schouten 367a13f905 Limit rights on process descriptors.
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
2015-07-31 10:21:58 +00:00
..
check_error.d
check_internal_locks.d
linux_common.c
linux_dtrace.h
linux_emul.c Finish r283544. In exec case properly detach threads from user space 2015-06-06 06:12:14 +00:00
linux_emul.h Print out unsupported futex operation message only once for the process. 2015-05-24 17:25:57 +00:00
linux_event.c Add EPOLLRDHUP support. 2015-06-20 05:40:35 +00:00
linux_event.h Add EPOLLRDHUP support. 2015-06-20 05:40:35 +00:00
linux_file.c Make pipes in CloudABI work. 2015-07-29 17:18:27 +00:00
linux_file.h
linux_fork.c Limit rights on process descriptors. 2015-07-31 10:21:58 +00:00
linux_futex.c Do not use struct l_timespec without conversion. While here move 2015-05-24 17:29:18 +00:00
linux_futex.h
linux_getcwd.c
linux_ioctl.c The latest cp tool is trying to use the btrfs clone operation that is 2015-05-24 18:12:04 +00:00
linux_ioctl.h The latest cp tool is trying to use the btrfs clone operation that is 2015-05-24 18:12:04 +00:00
linux_ipc.c
linux_ipc.h
linux_mib.c
linux_mib.h Update Linux compat revision to 32. 2015-05-24 16:55:32 +00:00
linux_misc.c The si_status field of the siginfo_t, provided by the waitid(2) and 2015-07-18 09:02:50 +00:00
linux_misc.h Add utimensat() system call. 2015-05-24 17:57:07 +00:00
linux_signal.c Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
linux_signal.h Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
linux_socket.c Properly initialize flags for accept4(2) not to return spurious EINVAL. 2015-06-08 20:03:15 +00:00
linux_socket.h Convert SCM_TIMESTAMP in recvmsg(). 2015-05-24 18:13:21 +00:00
linux_stats.c fd: make 'rights' a manadatory argument to fget* functions 2015-07-05 19:05:16 +00:00
linux_sysctl.c
linux_sysproto.h
linux_time.c Linux nanosleep() and clock_nanosleep() system calls always 2015-05-24 18:14:38 +00:00
linux_timer.c Convert Linux signal number to the FreeBSD. 2015-05-24 17:49:09 +00:00
linux_timer.h Delete the duplicate of linux_to_native_clockid() function. 2015-05-24 17:30:31 +00:00
linux_uid16.c
linux_util.c Implement epoll family system calls. This is a tiny wrapper 2015-05-24 16:41:39 +00:00
linux_util.h Fix linux_common module build with KTR option. 2015-05-24 16:52:45 +00:00
linux_vdso.c
linux_vdso.h
linux_videodev2_compat.h
linux_videodev_compat.h
linux.c Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
linux.h Rework signal code to allow using it by other modules, like linprocfs: 2015-05-24 17:47:20 +00:00
stats_timing.d
trace_futexes.d