xref: /linux/tools/testing/selftests/bpf/cap_helpers.h (revision e716e69cf67bb45c49653b884f88d8e97f454f50)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __CAP_HELPERS_H
3 #define __CAP_HELPERS_H
4 
5 #include <linux/types.h>
6 #include <linux/capability.h>
7 #include <errno.h>
8 
9 #ifndef CAP_PERFMON
10 #define CAP_PERFMON		38
11 #endif
12 
13 #ifndef CAP_BPF
14 #define CAP_BPF			39
15 #endif
16 
17 int cap_enable_effective(__u64 caps, __u64 *old_caps);
18 int cap_disable_effective(__u64 caps, __u64 *old_caps);
19 
20 #endif
21