linux-sg2042/scripts/selinux
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
..
genheaders selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
mdp selinux: declare data arrays const 2022-05-03 15:53:49 -04:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
README doc: ReSTify SELinux.txt 2017-05-18 10:31:30 -06:00
install_policy.sh scripts/selinux: modernize mdp 2019-03-18 18:38:28 -04:00

README

Please see Documentation/admin-guide/LSM/SELinux.rst for information on
installing a dummy SELinux policy.