History

powerpc/ima: Add support to initialize ima policy rules

PowerNV systems use a Linux-based bootloader, which rely on the IMA subsystem to enforce different secure boot modes. Since the verification policy may differ based on the secure boot mode of the system, the policies must be defined at runtime. This patch implements arch-specific support to define IMA policy rules based on the runtime secure boot mode of the system. This patch provides arch-specific IMA policies if PPC_SECURE_BOOT config is enabled.

Nayna Jain committed 7 years ago

Commit 4238fad1 parent 1a8916e4 files · +47 −2Browse files

Showing the changes to include/linux (1 of 4 files). Show all

Unified · Split

include/linux/ima.h+2−1
@@ -29,7 +29,8 @@ extern void ima_kexec_cmdline(const void *buf, int size); · 28 unmodified lines
2929 extern void ima_add_kexec_buffer(struct kimage *image);
3030 #endif
3131
32−#if (defined(CONFIG_X86) && defined(CONFIG_EFI)) || defined(CONFIG_S390)
32+#if (defined(CONFIG_X86) && defined(CONFIG_EFI)) || defined(CONFIG_S390) \
33+ || defined(CONFIG_PPC_SECURE_BOOT)
3334 extern bool arch_ima_get_secureboot(void);
3435 extern const char * const *arch_get_ima_policy(void);
3536 #else

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t