summaryrefslogtreecommitdiffstats
path: root/security/selinux/include/policycap_names.h
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2022-03-01 12:39:20 -0500
committerPaul Moore <paul@paul-moore.com>2022-03-02 11:37:03 -0500
commitcdbec3ede0b8cb318c36f5cc945b9360329cbd25 (patch)
tree779484bf8cd18ab49ec73a481f91b7178d0cb76d /security/selinux/include/policycap_names.h
parent70868c6b8fd80db585da57a264c50a69af8fd3c3 (diff)
downloadlinux-cdbec3ede0b8cb318c36f5cc945b9360329cbd25.tar.bz2
selinux: shorten the policy capability enum names
The SELinux policy capability enum names are rather long and follow the "POLICYDB_CAPABILITY_XXX format". While the "POLICYDB_" prefix is helpful in tying the enums to other SELinux policy constants, macros, etc. there is no reason why we need to spell out "CAPABILITY" completely. Shorten "CAPABILITY" to "CAP" in order to make things a bit shorter and cleaner. Moving forward, the SELinux policy capability enum names should follow the "POLICYDB_CAP_XXX" format. Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include/policycap_names.h')
-rw-r--r--security/selinux/include/policycap_names.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/include/policycap_names.h b/security/selinux/include/policycap_names.h
index ebd64afe1def..100da7d043db 100644
--- a/security/selinux/include/policycap_names.h
+++ b/security/selinux/include/policycap_names.h
@@ -5,7 +5,7 @@
#include "policycap.h"
/* Policy capability names */
-const char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX] = {
+const char *selinux_policycap_names[__POLICYDB_CAP_MAX] = {
"network_peer_controls",
"open_perms",
"extended_socket_class",