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)
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
Unknown Object (File)
Sep 23 2024, 7:13 PM
Unknown Object (File)
Sep 20 2024, 9:15 PM
Unknown Object (File)
Sep 20 2024, 1:22 PM
Unknown Object (File)
Sep 19 2024, 11:51 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.