selinux: shorten the policy capability enum names
authorPaul Moore <paul@paul-moore.com>
Tue, 1 Mar 2022 17:39:20 +0000 (12:39 -0500)
committerPaul Moore <paul@paul-moore.com>
Wed, 2 Mar 2022 16:37:03 +0000 (11:37 -0500)
commitcdbec3ede0b8cb318c36f5cc945b9360329cbd25
tree779484bf8cd18ab49ec73a481f91b7178d0cb76d
parent70868c6b8fd80db585da57a264c50a69af8fd3c3
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>
security/selinux/ima.c
security/selinux/include/policycap.h
security/selinux/include/policycap_names.h
security/selinux/include/security.h
security/selinux/selinuxfs.c