diff options
author | Nayna Jain <[email protected]> | 2020-05-01 10:16:52 -0400 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2020-05-07 17:25:54 +1000 |
commit | fa4f3f56ccd28ac031ab275e673ed4098855fed4 (patch) | |
tree | 82f32d7e2dc20a7ed61c556e6831627ec3ed0e73 /tools/perf/scripts/python/stackcollapse.py | |
parent | c44dc6323cd49d8d742c37e234b952e822c35de4 (diff) |
powerpc/ima: Fix secure boot rules in ima arch policy
To prevent verifying the kernel module appended signature
twice (finit_module), once by the module_sig_check() and again by IMA,
powerpc secure boot rules define an IMA architecture specific policy
rule only if CONFIG_MODULE_SIG_FORCE is not enabled. This,
unfortunately, does not take into account the ability of enabling
"sig_enforce" on the boot command line (module.sig_enforce=1).
Including the IMA module appraise rule results in failing the
finit_module syscall, unless the module signing public key is loaded
onto the IMA keyring.
This patch fixes secure boot policy rules to be based on
CONFIG_MODULE_SIG instead.
Fixes: 4238fad366a6 ("powerpc/ima: Add support to initialize ima policy rules")
Signed-off-by: Nayna Jain <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Signed-off-by: Mimi Zohar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions