integ/tools
Li Zhou e1b77cf7f0 kdump-tools: adapt check_secure_boot checking
The kdump-config uses files under /sys/firmware/efi/efivars to detect
secure boot status. But efivars isn't in use because
CONFIG_EFIVAR_FS is not set. We don't want to enable it because
when applying the preempt_rt patch to the Linux kernel,
EFI variables at runtime are disabled by default due to
high latencies
(https://www.spinics.net/lists/linux-rt-users/msg19980.html).

So change to use /sys/kernel/security/lockdown to detect secure
boot status because it is set to 'integrity' in the debian patch
[efi: Lock down the kernel if booted in secure boot mode] which is
in use by us.

Test Plan:
 PASS: Run "sudo kdump-config reload" on target successfully.
 PASS: Can generate vmcore files in /var/log/crash after kernel panic.
 PASS: Above tests are done with both secure boot enabled and disabled.

Story: 2009221
Task: 46644

Signed-off-by: Li Zhou <li.zhou@windriver.com>
Change-Id: I4c305ef49af6da84a7558d1fce6bbb19b8569401
2022-10-25 22:27:02 -04:00
..
engtools/parsers Fix bashate failure in zuul 2022-10-07 17:14:37 +00:00
kdump-tools/debian kdump-tools: adapt check_secure_boot checking 2022-10-25 22:27:02 -04:00
kexec-tools Update kexec-tools/makedumpfile to support v5.10 kernel 2021-10-19 14:29:42 -04:00
libbpf/centos Add libbpf v0.5.0 2021-10-29 17:23:16 -04:00
spec-tools speclint: only show the diff files 2019-06-27 10:36:24 -07:00
storage-topology/storage-topology Update legacy keystone credential tenant to project 2022-08-22 10:59:15 -04:00