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_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(unsigned int capnum);
23 
24 #ifdef __cplusplus
25 }
26 #endif
27 
28 #endif /* _SEPOL_POLICYDB_POLCAPS_H_ */
29