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

(cherry picked from commit a7100ae23aca07976926bd8d50223c45149f65d6)

Details

Provenance
oshogboAuthored on Dec 11 2023, 11:09 AM
emasteCommitted on Jun 5 2024, 3:55 PM
Reviewer
emaste
Differential Revision
D42780: Introduce cap_rights_is_empty function
Parents
rG91badda4a2dd: eqos: Call init earlier
Branches
Unknown
Tags
Unknown