• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_CAP_NETPEER,
11 	POLICYDB_CAP_OPENPERM,
12 	POLICYDB_CAP_EXTSOCKCLASS,
13 	POLICYDB_CAP_ALWAYSNETWORK,
14 	POLICYDB_CAP_CGROUPSECLABEL,
15 	POLICYDB_CAP_NNP_NOSUID_TRANSITION,
16 	POLICYDB_CAP_GENFS_SECLABEL_SYMLINKS,
17 	POLICYDB_CAP_IOCTL_SKIP_CLOEXEC,
18 	POLICYDB_CAP_USERSPACE_INITIAL_CONTEXT,
19 	__POLICYDB_CAP_MAX
20 };
21 #define POLICYDB_CAP_MAX (__POLICYDB_CAP_MAX - 1)
22 
23 /* Convert a capability name to number. */
24 extern int sepol_polcap_getnum(const char *name);
25 
26 /* Convert a capability number to name. */
27 extern const char *sepol_polcap_getname(unsigned int capnum);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif /* _SEPOL_POLICYDB_POLCAPS_H_ */
34