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_MAX 19 }; 20 #define POLICYDB_CAP_MAX (__POLICYDB_CAP_MAX - 1) 21 22 /* Convert a capability name to number. */ 23 extern int sepol_polcap_getnum(const char *name); 24 25 /* Convert a capability number to name. */ 26 extern const char *sepol_polcap_getname(unsigned int capnum); 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 #endif /* _SEPOL_POLICYDB_POLCAPS_H_ */ 33