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, May 3, 5:25 AM
Unknown Object (File)
Thu, May 2, 8:43 PM
Unknown Object (File)
Apr 26 2024, 6:38 AM
Unknown Object (File)
Apr 26 2024, 6:23 AM
Unknown Object (File)
Mar 15 2024, 10:10 AM
Unknown Object (File)
Mar 15 2024, 10:09 AM
Unknown Object (File)
Dec 20 2023, 1:01 AM
Unknown Object (File)
Sep 7 2023, 2:40 AM
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.