HomeFreeBSD

capsicum: introduce cap_rights_is_empty Function

Description

capsicum: introduce cap_rights_is_empty Function

Before this commit, we only had the capability to check if a specific
capability was set (using cap_rights_is_set function). However, there
was no efficient method to determine if a cap_rights_t structure doesn't
contain any capability. The cap_rights_is_empty function addresses
this gap.

PR: 275330
Reported by: vini.ipsmaker@gmail.com
Reviewed by: emaste, markj
Differential Revision: https://reviews.freebsd.org/D42780

Details

Provenance
oshogboAuthored on Dec 11 2023, 11:09 AM
Reviewer
emaste
Differential Revision
D42780: Introduce cap_rights_is_empty function
Parents
rGbd0771390ef5: eqos: Call init earlier
Branches
Unknown
Tags
Unknown