diff options
author | Matthew Garrett <[email protected]> | 2019-08-19 17:18:01 -0700 |
---|---|---|
committer | James Morris <[email protected]> | 2019-08-19 21:54:16 -0700 |
commit | 29d3c1c8dfe752c01b7115ecd5a3142b232a38e1 (patch) | |
tree | 9a42db9e64c08db645dcf9689344d4f718b4d518 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | b0c8fdc7fdb77586c3d1937050925b960743306e (diff) |
kexec: Allow kexec_file() with appropriate IMA policy when locked down
Systems in lockdown mode should block the kexec of untrusted kernels.
For x86 and ARM we can ensure that a kernel is trustworthy by validating
a PE signature, but this isn't possible on other architectures. On those
platforms we can use IMA digital signatures instead. Add a function to
determine whether IMA has or will verify signatures for a given event type,
and if so permit kexec_file() even if the kernel is otherwise locked down.
This is restricted to cases where CONFIG_INTEGRITY_TRUSTED_KEYRING is set
in order to prevent an attacker from loading additional keys at runtime.
Signed-off-by: Matthew Garrett <[email protected]>
Acked-by: Mimi Zohar <[email protected]>
Cc: Dmitry Kasatkin <[email protected]>
Cc: [email protected]
Signed-off-by: James Morris <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions