Page MenuHomeFreeBSD

Make cap_rights_limit() work for CloudABI processes.
ClosedPublic

Authored by ed on Aug 6 2015, 7:28 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 26, 12:03 AM
Unknown Object (File)
Thu, Mar 19, 10:59 AM
Unknown Object (File)
Tue, Mar 17, 9:36 AM
Unknown Object (File)
Mon, Mar 16, 7:59 PM
Unknown Object (File)
Wed, Mar 11, 2:57 PM
Unknown Object (File)
Wed, Mar 11, 5:00 AM
Unknown Object (File)
Feb 17 2026, 6:22 AM
Unknown Object (File)
Feb 7 2026, 8:39 PM
Subscribers

Details

Summary

Move the interesting bits of sys_cap_rights_limit() into
kern_cap_rights_limit(), so that we can call into it from the CloudABI
compatibility layer.

Extend CloudABI's fd_stat_put() to call into this new function when
limiting rights.

Test Plan

The Capsicum tests that are part of cloudlibc now pass:
https://github.com/NuxiNL/cloudlibc/tree/master/src/libc/sys/capsicum

Diff Detail

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

Event Timeline

ed retitled this revision from to Make cap_rights_limit() work for CloudABI processes..
ed updated this object.
ed edited the test plan for this revision. (Show Details)
ed added reviewers: rwatson, jonathan.
This revision was automatically updated to reflect the committed changes.