HomeFreeBSD

Allow the creation of kqueues with a restricted set of Capsicum rights.

Description

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

Details

Provenance
edAuthored on
Differential Revision
D3259: Allow the creation of polling descriptors (kqueues) on CloudABI.
Parents
rS286308: MFC r284921:
Branches
Unknown
Tags
Unknown