diff options
author | Mimi Zohar <zohar@linux.ibm.com> | 2020-05-03 08:00:02 +0300 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2020-05-22 21:41:04 +0300 |
commit | 8eb613c0b8f19627ba1846dcf78bb2c85edbe8dd (patch) | |
tree | 7cd7a2a48ae7c51b0d1db9b2aa71ede32f76812d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0c4395fb2aa77341269ea619c5419ea48171883f (diff) | |
download | linux-8eb613c0b8f19627ba1846dcf78bb2c85edbe8dd.tar.xz |
ima: verify mprotect change is consistent with mmap policy
Files can be mmap'ed read/write and later changed to execute to circumvent
IMA's mmap appraise policy rules. Due to locking issues (mmap semaphore
would be taken prior to i_mutex), files can not be measured or appraised at
this point. Eliminate this integrity gap, by denying the mprotect
PROT_EXECUTE change, if an mmap appraise policy rule exists.
On mprotect change success, return 0. On failure, return -EACESS.
Reviewed-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions