HomeFreeBSD

path_test: fix cap_rights_init usage

Description

path_test: 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
Fixes: e5e1d9c7b781 ("path_test: Add a test case for...")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit 8d1348f55aed6873f34f54bc3b275b73ef0ff66d)
(cherry picked from commit ea3910c452cf44342e0b65d6283aebeb77a10863)

Details

Provenance
emasteAuthored on Feb 15 2024, 12:45 AM
Parents
rGec44cc4e2882: libcasper: fix cap_rights_init usage
Branches
Unknown
Tags
Unknown