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)

Details

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