HomeFreeBSD

cat: fix cap_rights_init usage

Description

cat: fix cap_rights_init usage

Capability rights passed to cap_rights_* are not simple bitmaks and
cannot be ORed together in general (although it will work for certain
subsets of rights).

PR: 277057
Reported by: asomers, markj

(cherry picked from commit 05f530f4d2bb15fda3d258b3bd92d4515d9ef39f)

Details

Provenance
emasteAuthored on Feb 15 2024, 12:03 AM
Parents
rG5f527dbe41b8: cat: add CAP_SEEK capability
Branches
Unknown
Tags
Unknown