]> www.infradead.org Git - users/dwmw2/linux.git/commit
selinux: declare read-only data arrays const
authorChristian Göttsche <cgzones@googlemail.com>
Thu, 20 Apr 2023 15:05:03 +0000 (17:05 +0200)
committerPaul Moore <paul@paul-moore.com>
Mon, 8 May 2023 20:52:05 +0000 (16:52 -0400)
commit4158cb600006371f4359f6ef23a0f1a7255e8843
treed78a92aab13b4e457277331888b655cb86f07953
parent4595ae8c4a10a005a24c0994b710c9575f5b46b9
selinux: declare read-only data arrays const

The array of mount tokens in only used in match_opt_prefix() and never
modified.

The array of symtab names is never modified and only used in the
DEBUG_HASHES configuration as output.

The array of files for the SElinux filesystem sub-directory `ss` is
similar to the other `struct tree_descr` usages only read from to
construct the containing entries.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/hooks.c
security/selinux/selinuxfs.c
security/selinux/ss/policydb.c