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)
Sun, Apr 20, 12:04 AM
Unknown Object (File)
Sat, Apr 19, 5:52 PM
Unknown Object (File)
Feb 7 2025, 11:21 AM
Unknown Object (File)
Feb 2 2025, 4:35 PM
Unknown Object (File)
Nov 24 2024, 6:46 PM
Unknown Object (File)
Sep 24 2024, 8:30 PM
Unknown Object (File)
Sep 24 2024, 6:42 PM
Unknown Object (File)
Sep 23 2024, 10:57 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.