cap_helpers.h 360 B

12345678910111213141516171819
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __CAP_HELPERS_H
  3. #define __CAP_HELPERS_H
  4. #include <linux/types.h>
  5. #include <linux/capability.h>
  6. #ifndef CAP_PERFMON
  7. #define CAP_PERFMON 38
  8. #endif
  9. #ifndef CAP_BPF
  10. #define CAP_BPF 39
  11. #endif
  12. int cap_enable_effective(__u64 caps, __u64 *old_caps);
  13. int cap_disable_effective(__u64 caps, __u64 *old_caps);
  14. #endif