xref: /linux/security/selinux/include/policycap.h (revision 06d07429858317ded2db7986113a9e0129cd599b)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef _SELINUX_POLICYCAP_H_
4 #define _SELINUX_POLICYCAP_H_
5 
6 /* Policy capabilities */
7 enum {
8 	POLICYDB_CAP_NETPEER,
9 	POLICYDB_CAP_OPENPERM,
10 	POLICYDB_CAP_EXTSOCKCLASS,
11 	POLICYDB_CAP_ALWAYSNETWORK,
12 	POLICYDB_CAP_CGROUPSECLABEL,
13 	POLICYDB_CAP_NNP_NOSUID_TRANSITION,
14 	POLICYDB_CAP_GENFS_SECLABEL_SYMLINKS,
15 	POLICYDB_CAP_IOCTL_SKIP_CLOEXEC,
16 	POLICYDB_CAP_USERSPACE_INITIAL_CONTEXT,
17 	__POLICYDB_CAP_MAX
18 };
19 #define POLICYDB_CAP_MAX (__POLICYDB_CAP_MAX - 1)
20 
21 extern const char *const selinux_policycap_names[__POLICYDB_CAP_MAX];
22 
23 #endif /* _SELINUX_POLICYCAP_H_ */
24