1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 << 3 #ifndef _SELINUX_POLICYCAP_H_ 2 #ifndef _SELINUX_POLICYCAP_H_ 4 #define _SELINUX_POLICYCAP_H_ 3 #define _SELINUX_POLICYCAP_H_ 5 4 6 /* Policy capabilities */ 5 /* Policy capabilities */ 7 enum { 6 enum { 8 POLICYDB_CAP_NETPEER, !! 7 POLICYDB_CAPABILITY_NETPEER, 9 POLICYDB_CAP_OPENPERM, !! 8 POLICYDB_CAPABILITY_OPENPERM, 10 POLICYDB_CAP_EXTSOCKCLASS, !! 9 POLICYDB_CAPABILITY_EXTSOCKCLASS, 11 POLICYDB_CAP_ALWAYSNETWORK, !! 10 POLICYDB_CAPABILITY_ALWAYSNETWORK, 12 POLICYDB_CAP_CGROUPSECLABEL, !! 11 POLICYDB_CAPABILITY_CGROUPSECLABEL, 13 POLICYDB_CAP_NNP_NOSUID_TRANSITION, !! 12 POLICYDB_CAPABILITY_NNP_NOSUID_TRANSITION, 14 POLICYDB_CAP_GENFS_SECLABEL_SYMLINKS, !! 13 POLICYDB_CAPABILITY_GENFS_SECLABEL_SYMLINKS, 15 POLICYDB_CAP_IOCTL_SKIP_CLOEXEC, !! 14 __POLICYDB_CAPABILITY_MAX 16 POLICYDB_CAP_USERSPACE_INITIAL_CONTEXT << 17 __POLICYDB_CAP_MAX << 18 }; 15 }; 19 #define POLICYDB_CAP_MAX (__POLICYDB_CAP_MAX - !! 16 #define POLICYDB_CAPABILITY_MAX (__POLICYDB_CAPABILITY_MAX - 1) 20 17 21 extern const char *const selinux_policycap_nam !! 18 extern const char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX]; 22 19 23 #endif /* _SELINUX_POLICYCAP_H_ */ 20 #endif /* _SELINUX_POLICYCAP_H_ */ 24 21
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.