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