HomeFreeBSD

Introduce kern_cap_rights_limit().

Description

Introduce kern_cap_rights_limit().

The existing sys_cap_rights_limit() expects that a cap_rights_t object
lives in userspace. It is therefore hard to call into it from
kernelspace.

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.

Obtained from: https://github.com/NuxiNL/freebsd
Differential Revision: https://reviews.freebsd.org/D3314

Details

Provenance
edAuthored on
Differential Revision
D3314: Make cap_rights_limit() work for CloudABI processes.
Parents
rS286617: Use __DECONST instead of doing strdup/free.
Branches
Unknown
Tags
Unknown