diff options
author | Paul Moore <paul@paul-moore.com> | 2022-03-01 12:39:20 -0500 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2022-03-02 11:37:03 -0500 |
commit | cdbec3ede0b8cb318c36f5cc945b9360329cbd25 (patch) | |
tree | 779484bf8cd18ab49ec73a481f91b7178d0cb76d /security/selinux/selinuxfs.c | |
parent | 70868c6b8fd80db585da57a264c50a69af8fd3c3 (diff) | |
download | lwn-cdbec3ede0b8cb318c36f5cc945b9360329cbd25.tar.gz lwn-cdbec3ede0b8cb318c36f5cc945b9360329cbd25.zip |
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/selinuxfs.c')
-rw-r--r-- | security/selinux/selinuxfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index f2f6203e0fff..097c6d866ec4 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c @@ -1983,7 +1983,7 @@ static int sel_make_policycap(struct selinux_fs_info *fsi) struct dentry *dentry = NULL; struct inode *inode = NULL; - for (iter = 0; iter <= POLICYDB_CAPABILITY_MAX; iter++) { + for (iter = 0; iter <= POLICYDB_CAP_MAX; iter++) { if (iter < ARRAY_SIZE(selinux_policycap_names)) dentry = d_alloc_name(fsi->policycap_dir, selinux_policycap_names[iter]); |