linux/security/selinux/include
Christian Göttsche ded34574d4 selinux: declare data arrays const
The arrays for the policy capability names, the initial sid identifiers
and the class and permission names are not changed at runtime.  Declare
them const to avoid accidental modification.

Do not override the classmap and the initial sid list in the build time
script genheaders.

Check flose(3) is successful in genheaders.c, otherwise the written data
might be corrupted or incomplete.

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
[PM: manual merge due to fuzz, minor style tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
2022-05-03 15:53:49 -04:00
..
audit.h selinux: include necessary headers in headers 2022-05-03 14:11:13 -04:00
avc_ss.h selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
avc.h selinux: update parameter documentation 2022-05-03 14:03:57 -04:00
classmap.h selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
conditional.h selinux: move policy commit after updating selinuxfs 2020-08-17 20:50:22 -04:00
ibpkey.h selinux: include necessary headers in headers 2022-05-03 14:11:13 -04:00
ima.h selinux: measure state and policy capabilities 2021-03-08 19:39:07 -05:00
initial_sid_to_string.h selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
netif.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
netlabel.h security: pass asoc to sctp_assoc_request and sctp_sk_clone 2021-11-03 11:09:20 +00:00
netnode.h selinux: include necessary headers in headers 2022-05-03 14:11:13 -04:00
netport.h selinux: include necessary headers in headers 2022-05-03 14:11:13 -04:00
objsec.h LSM: Infrastructure management of the superblock 2021-04-22 12:22:10 -07:00
policycap_names.h selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
policycap.h selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
security.h selinux: don't sleep when CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE is true 2022-04-14 16:44:21 -04:00
xfrm.h selinux: include necessary headers in headers 2022-05-03 14:11:13 -04:00