Home | History | Annotate | Download | only in policydb
      1 #ifndef _SEPOL_POLICYDB_POLCAPS_H_
      2 #define _SEPOL_POLICYDB_POLCAPS_H_
      3 
      4 #include <sys/cdefs.h>
      5 
      6 __BEGIN_DECLS
      7 
      8 /* Policy capabilities */
      9 enum {
     10 	POLICYDB_CAPABILITY_NETPEER,
     11 	POLICYDB_CAPABILITY_OPENPERM,
     12 	POLICYDB_CAPABILITY_REDHAT1, /* reserved for RH testing of ptrace_child */
     13 	POLICYDB_CAPABILITY_ALWAYSNETWORK,
     14 	__POLICYDB_CAPABILITY_MAX
     15 };
     16 #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1)
     17 
     18 /* Convert a capability name to number. */
     19 extern int sepol_polcap_getnum(const char *name);
     20 
     21 /* Convert a capability number to name. */
     22 extern const char *sepol_polcap_getname(int capnum);
     23 
     24 __END_DECLS
     25 #endif /* _SEPOL_POLICYDB_POLCAPS_H_ */
     26