aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/ss/ebitmap.c
diff options
context:
space:
mode:
authorOndrej Mosnacek <omosnace@redhat.com>2021-01-06 14:26:21 +0100
committerPaul Moore <paul@paul-moore.com>2021-01-12 10:08:55 -0500
commitcd2bb4cb0996f73ad31604d86c1c0815fc813349 (patch)
tree15b255b59158c1f33cfdbfb40f111b3fa9235a61 /security/selinux/ss/ebitmap.c
parentselinux: make selinuxfs_mount static (diff)
downloadlinux-dev-cd2bb4cb0996f73ad31604d86c1c0815fc813349.tar.xz
linux-dev-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/ebitmap.c')
-rw-r--r--security/selinux/ss/ebitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/ss/ebitmap.c b/security/selinux/ss/ebitmap.c
index 14bedc95c6dc..61fcbb8d0f88 100644
--- a/security/selinux/ss/ebitmap.c
+++ b/security/selinux/ss/ebitmap.c
@@ -26,7 +26,7 @@
#define BITS_PER_U64 (sizeof(u64) * 8)
-static struct kmem_cache *ebitmap_node_cachep;
+static struct kmem_cache *ebitmap_node_cachep __ro_after_init;
int ebitmap_cmp(struct ebitmap *e1, struct ebitmap *e2)
{