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