diff options
author | Stephen Smalley <sds@tycho.nsa.gov> | 2020-01-08 18:23:56 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-01-10 18:26:20 +0100 |
commit | b78b7d59bdbe6028ab362c2551dc684872f2052a (patch) | |
tree | 0fdca3b57d0e335a61ea3de4a5b5469dd05df296 /samples/qmi | |
parent | selinux: move ibpkeys code under CONFIG_SECURITY_INFINIBAND. (diff) | |
download | linux-b78b7d59bdbe6028ab362c2551dc684872f2052a.tar.xz linux-b78b7d59bdbe6028ab362c2551dc684872f2052a.zip |
selinux: make default_noexec read-only after init
SELinux checks whether VM_EXEC is set in the VM_DATA_DEFAULT_FLAGS
during initialization and saves the result in default_noexec for use
in its mmap and mprotect hook function implementations to decide
whether to apply EXECMEM, EXECHEAP, EXECSTACK, and EXECMOD checks.
Mark default_noexec as ro_after_init to prevent later clearing it
and thereby disabling these checks. It is only set legitimately from
init code.
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions