• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef _SEPOL_POLICYDB_POLCAPS_H_
2 #define _SEPOL_POLICYDB_POLCAPS_H_
3 
4 /* Policy capabilities */
5 enum {
6 	POLICYDB_CAPABILITY_NETPEER,
7 	POLICYDB_CAPABILITY_OPENPERM,
8 	POLICYDB_CAPABILITY_REDHAT1, /* reserved for RH testing of ptrace_child */
9 	POLICYDB_CAPABILITY_ALWAYSNETWORK,
10 	__POLICYDB_CAPABILITY_MAX
11 };
12 #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1)
13 
14 /* Convert a capability name to number. */
15 extern int sepol_polcap_getnum(const char *name);
16 
17 /* Convert a capability number to name. */
18 extern const char *sepol_polcap_getname(int capnum);
19 
20 #endif /* _SEPOL_POLICYDB_POLCAPS_H_ */
21