mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-11-01 17:08:10 +00:00
x86/ima: fix the Kconfig dependency for IMA_ARCH_POLICY
If enabled, ima arch specific policies always adds the measurements rules,
this makes it dependent on CONFIG_IMA. CONFIG_IMA_APPRAISE implicitly takes
care of this, however it is needed explicitly for CONFIG_KEXEC_VERIFY_SIG.
This patch adds the CONFIG_IMA dependency in combination with
CONFIG_KEXEC_VERIFY_SIG for CONFIG_IMA_ARCH_POLICY
Fixes: d958083a8f
(x86/ima: define arch_get_ima_policy() for x86)
Signed-off-by: Nayna Jain <nayna@linux.ibm.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Dave Young <dyoung@redhat.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
This commit is contained in:
parent
68f2529078
commit
9e1e5d4372
1 changed files with 2 additions and 1 deletions
|
@ -159,7 +159,8 @@ config IMA_APPRAISE
|
||||||
|
|
||||||
config IMA_ARCH_POLICY
|
config IMA_ARCH_POLICY
|
||||||
bool "Enable loading an IMA architecture specific policy"
|
bool "Enable loading an IMA architecture specific policy"
|
||||||
depends on KEXEC_VERIFY_SIG || IMA_APPRAISE && INTEGRITY_ASYMMETRIC_KEYS
|
depends on (KEXEC_VERIFY_SIG && IMA) || IMA_APPRAISE \
|
||||||
|
&& INTEGRITY_ASYMMETRIC_KEYS
|
||||||
default n
|
default n
|
||||||
help
|
help
|
||||||
This option enables loading an IMA architecture specific policy
|
This option enables loading an IMA architecture specific policy
|
||||||
|
|
Loading…
Reference in a new issue