Debian Codegraph @

include/sepol/policydb/polcaps.h

raw
1 #ifndef _SEPOL_POLICYDB_POLCAPS_H_
2 #define _SEPOL_POLICYDB_POLCAPS_H_
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 /* Policy capabilities */
9 enum {
10 POLICYDB_CAP_NETPEER,
11 POLICYDB_CAP_OPENPERM,
12 POLICYDB_CAP_EXTSOCKCLASS,
13 POLICYDB_CAP_ALWAYSNETWORK,
14 POLICYDB_CAP_CGROUPSECLABEL,
15 POLICYDB_CAP_NNP_NOSUID_TRANSITION,
16 POLICYDB_CAP_GENFS_SECLABEL_SYMLINKS,
17 POLICYDB_CAP_IOCTL_SKIP_CLOEXEC,
18 POLICYDB_CAP_USERSPACE_INITIAL_CONTEXT,
19 POLICYDB_CAP_NETLINK_XPERM,
20 POLICYDB_CAP_NETIF_WILDCARD,
21 POLICYDB_CAP_GENFS_SECLABEL_WILDCARD,
22 POLICYDB_CAP_FUNCTIONFS_SECLABEL,
23 POLICYDB_CAP_MEMFD_CLASS,
24 POLICYDB_CAP_BPF_TOKEN_PERMS,
25 __POLICYDB_CAP_MAX
26 };
27 #define POLICYDB_CAP_MAX (__POLICYDB_CAP_MAX - 1)
28
29 /* Convert a capability name to number. */
30 extern int sepol_polcap_getnum(const char *name);
31
32 /* Convert a capability number to name. */
33 extern const char *sepol_polcap_getname(unsigned int capnum);
34
35 #ifdef __cplusplus
36 }
37 #endif
38
39 #endif /* _SEPOL_POLICYDB_POLCAPS_H_ */