Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: incorrect CAP_BPF check method (#715)
And added a check for CAP_SYS_ADMIN permissions. > The CAP_* values are bit indexes and need to be bit-shifted before ORing into the bit fields. refer: * https://man7.org/linux/man-pages/man2/capset.2.html * https://github.com/torvalds/linux/blob/0bc21e701a6ffacfdde7f04f87d664d82e8a13bf/include/uapi/linux/capability.h#L383-L412 Signed-off-by: hengyoush <[email protected]>
- Loading branch information