diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2021-01-06 16:26:21 +0300 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-01-12 18:08:55 +0300 |
commit | cd2bb4cb0996f73ad31604d86c1c0815fc813349 (patch) | |
tree | 15b255b59158c1f33cfdbfb40f111b3fa9235a61 /security/selinux/avc.c | |
parent | db478cd60d55db5f1736510786cf14b4b79718d3 (diff) | |
download | linux-cd2bb4cb0996f73ad31604d86c1c0815fc813349.tar.xz |
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/avc.c')
-rw-r--r-- | security/selinux/avc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index 3c05827608b6..ad451cf9375e 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c @@ -118,11 +118,11 @@ void avc_set_cache_threshold(struct selinux_avc *avc, avc->avc_cache_threshold = cache_threshold; } -static struct avc_callback_node *avc_callbacks; -static struct kmem_cache *avc_node_cachep; -static struct kmem_cache *avc_xperms_data_cachep; -static struct kmem_cache *avc_xperms_decision_cachep; -static struct kmem_cache *avc_xperms_cachep; +static struct avc_callback_node *avc_callbacks __ro_after_init; +static struct kmem_cache *avc_node_cachep __ro_after_init; +static struct kmem_cache *avc_xperms_data_cachep __ro_after_init; +static struct kmem_cache *avc_xperms_decision_cachep __ro_after_init; +static struct kmem_cache *avc_xperms_cachep __ro_after_init; static inline int avc_hash(u32 ssid, u32 tsid, u16 tclass) { |