diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2021-01-06 14:26:21 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-01-12 16:08:55 +0100 |
commit | cd2bb4cb0996f73ad31604d86c1c0815fc813349 (patch) | |
tree | 15b255b59158c1f33cfdbfb40f111b3fa9235a61 /security/selinux/ss/avtab.c | |
parent | selinux: make selinuxfs_mount static (diff) | |
download | linux-cd2bb4cb0996f73ad31604d86c1c0815fc813349.tar.xz linux-cd2bb4cb0996f73ad31604d86c1c0815fc813349.zip |
selinux: mark some global variables __ro_after_init
All of these are never modified outside initcalls, so they can be
__ro_after_init.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/avtab.c')
-rw-r--r-- | security/selinux/ss/avtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/avtab.c b/security/selinux/ss/avtab.c index 0172d87e2b9a..6dcb6aa4db7f 100644 --- a/security/selinux/ss/avtab.c +++ b/security/selinux/ss/avtab.c @@ -23,8 +23,8 @@ #include "avtab.h" #include "policydb.h" -static struct kmem_cache *avtab_node_cachep; -static struct kmem_cache *avtab_xperms_cachep; +static struct kmem_cache *avtab_node_cachep __ro_after_init; +static struct kmem_cache *avtab_xperms_cachep __ro_after_init; /* Based on MurmurHash3, written by Austin Appleby and placed in the * public domain. |