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)
(cherry picked from commit dbf34bbb188876551dcfec32fbbed2ba8ba24f12)

Details

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