HomeFreeBSD

capsicum: faster cap_rights_contains

Description

capsicum: faster cap_rights_contains

Instead of doing a 2 iteration loop (determined at runeimt), take advantage
of the fact that the size is already known.

While here provdie cap_check_inline so that fget_unlocked does not have to
do a function call.

Verified with the capsicum suite /usr/tests.

Details

Provenance
mjgAuthored on Feb 3 2020, 5:08 PM
Parents
rG2abdae33b1ac: tmpfs: inline tmpfs_update
Branches
Unknown
Tags
Unknown

Event Timeline