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_CAP_NETPEER, 9 POLICYDB_CAP_OPENPERM, 8 POLICYDB_CAP_OPENPERM, 10 POLICYDB_CAP_EXTSOCKCLASS, 9 POLICYDB_CAP_EXTSOCKCLASS, 11 POLICYDB_CAP_ALWAYSNETWORK, 10 POLICYDB_CAP_ALWAYSNETWORK, 12 POLICYDB_CAP_CGROUPSECLABEL, 11 POLICYDB_CAP_CGROUPSECLABEL, 13 POLICYDB_CAP_NNP_NOSUID_TRANSITION, 12 POLICYDB_CAP_NNP_NOSUID_TRANSITION, 14 POLICYDB_CAP_GENFS_SECLABEL_SYMLINKS, 13 POLICYDB_CAP_GENFS_SECLABEL_SYMLINKS, 15 POLICYDB_CAP_IOCTL_SKIP_CLOEXEC, 14 POLICYDB_CAP_IOCTL_SKIP_CLOEXEC, 16 POLICYDB_CAP_USERSPACE_INITIAL_CONTEXT << 17 __POLICYDB_CAP_MAX 15 __POLICYDB_CAP_MAX 18 }; 16 }; 19 #define POLICYDB_CAP_MAX (__POLICYDB_CAP_MAX - 17 #define POLICYDB_CAP_MAX (__POLICYDB_CAP_MAX - 1) 20 18 21 extern const char *const selinux_policycap_nam !! 19 extern const char *selinux_policycap_names[__POLICYDB_CAP_MAX]; 22 20 23 #endif /* _SELINUX_POLICYCAP_H_ */ 21 #endif /* _SELINUX_POLICYCAP_H_ */ 24 22
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.