summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2015-08-05 07:36:50 +0000
committered <ed@FreeBSD.org>2015-08-05 07:36:50 +0000
commit0698a33dea5f8920617f2212697ee6438c80bf6d (patch)
tree729e8c89cdd874fac92ca1e77441c395a63e5ba8 /sys/compat
parent4a54322f0b8dcd72b1946004f9b964ef0093af1a (diff)
downloadFreeBSD-src-0698a33dea5f8920617f2212697ee6438c80bf6d.zip
FreeBSD-src-0698a33dea5f8920617f2212697ee6438c80bf6d.tar.gz
Allow the creation of kqueues with a restricted set of Capsicum rights.
On CloudABI we want to create file descriptors with just the minimal set of Capsicum rights in place. The reason for this is that it makes it easier to obtain uniform behaviour across different operating systems. By explicitly whitelisting the operations, we can return consistent error codes, but also prevent applications from depending OS-specific behaviour. Extend kern_kqueue() to take an additional struct filecaps that is passed on to falloc_caps(). Update the existing consumers to pass in NULL. Differential Revision: https://reviews.freebsd.org/D3259
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_event.c b/sys/compat/linux/linux_event.c
index fcb5753..b1ceadf 100644
--- a/sys/compat/linux/linux_event.c
+++ b/sys/compat/linux/linux_event.c
@@ -205,7 +205,7 @@ epoll_create_common(struct thread *td, int flags)
{
int error;
- error = kern_kqueue(td, flags);
+ error = kern_kqueue(td, flags, NULL);
if (error)
return (error);
OpenPOWER on IntegriCloud