Page MenuHomeFreeBSD

Allow the creation of polling descriptors (kqueues) on CloudABI.
ClosedPublic

Authored by ed on Jul 31 2015, 9:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 19, 4:02 PM
Unknown Object (File)
Thu, Dec 19, 3:22 PM
Unknown Object (File)
Thu, Dec 19, 12:59 PM
Unknown Object (File)
Oct 28 2024, 7:24 AM
Unknown Object (File)
Oct 18 2024, 7:13 AM
Unknown Object (File)
Oct 2 2024, 9:59 AM
Unknown Object (File)
Oct 2 2024, 6:53 AM
Unknown Object (File)
Sep 26 2024, 12:03 PM
Subscribers

Details

Summary

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. Extend the fd_create1() system call to call into kern_kqueue().

Test Plan

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage

Event Timeline

ed retitled this revision from to Allow the creation of polling descriptors (kqueues) on CloudABI..
ed updated this object.
ed edited the test plan for this revision. (Show Details)
ed added a reviewer: jmg.

Per Kostik's request, I'll check in the changes to kern_kqueue() and the CloudABI code separately, to ease MFCing.

I'll leave the code review as is (combined), but I'll make sure to commit it separately.

Rebase on top of latest HEAD.

This revision was automatically updated to reflect the committed changes.