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)
Fri, Nov 7, 4:11 AM
Unknown Object (File)
Wed, Oct 29, 1:40 PM
Unknown Object (File)
Wed, Oct 29, 1:40 PM
Unknown Object (File)
Wed, Oct 29, 1:40 PM
Unknown Object (File)
Wed, Oct 29, 8:14 AM
Unknown Object (File)
Oct 10 2025, 11:03 PM
Unknown Object (File)
Oct 9 2025, 3:55 PM
Unknown Object (File)
Oct 6 2025, 12:33 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 Not Applicable
Unit
Tests Not Applicable

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.