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_CAPABILITY_NETPEER, 11 POLICYDB_CAPABILITY_OPENPERM, 12 POLICYDB_CAPABILITY_EXTSOCKCLASS, 13 POLICYDB_CAPABILITY_ALWAYSNETWORK, 14 POLICYDB_CAPABILITY_CGROUPSECLABEL, 15 POLICYDB_CAPABILITY_NNP_NOSUID_TRANSITION, 16 __POLICYDB_CAPABILITY_MAX 17 }; 18 #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1) 19 20 /* Convert a capability name to number. */ 21 extern int sepol_polcap_getnum(const char *name); 22 23 /* Convert a capability number to name. */ 24 extern const char *sepol_polcap_getname(unsigned int capnum); 25 26 #ifdef __cplusplus 27 } 28 #endif 29 30 #endif /* _SEPOL_POLICYDB_POLCAPS_H_ */ 31