aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2018-03-09 19:30:20 +0000
committerJames Morris <[email protected]>2018-03-19 04:49:32 +0000
commit7bd698b3c04e61ee9e03d4c2a55003f75df14dca (patch)
treed15e529bab47370611aa871465662775f9798027 /scripts/gcc-plugins/randomize_layout_plugin.c
parentusb, signal, security: only pass the cred, not the secid, to kill_pid_info_as... (diff)
downloadkernel-7bd698b3c04e61ee9e03d4c2a55003f75df14dca.tar.gz
kernel-7bd698b3c04e61ee9e03d4c2a55003f75df14dca.zip
exec: Set file unwritable before LSM check
The LSM check should happen after the file has been confirmed to be unchanging. Without this, we could have a race between the Time of Check (the call to security_kernel_read_file() which could read the file and make access policy decisions) and the Time of Use (starting with kernel_read_file()'s reading of the file contents). In theory, file contents could change between the two. Signed-off-by: Kees Cook <[email protected]> Reviewed-by: Mimi Zohar <[email protected]> Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions