Re: [PATCH v7 2/8] powerpc: add support to initialize ima policy rules

From: Michael Ellerman
Date: Tue Oct 15 2019 - 05:59:42 EST


Mimi Zohar <zohar@xxxxxxxxxxxxx> writes:
> On Mon, 2019-10-07 at 21:14 -0400, Nayna Jain wrote:
...
>> diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
>> index b4a221886fcf..deb19ec6ba3d 100644
>> --- a/arch/powerpc/Kconfig
>> +++ b/arch/powerpc/Kconfig
>> @@ -938,6 +938,8 @@ config PPC_SECURE_BOOT
>> prompt "Enable secure boot support"
>> bool
>> depends on PPC_POWERNV
>> + depends on IMA
>> + depends on IMA_ARCH_POLICY
>
> As IMA_ARCH_POLICY is dependent on IMA, I don't see a need for
> depending on both IMA and IMA_ARCH_POLICY.

I agree. And what we actually depend on is the arch part, so it should
depend on just IMA_ARCH_POLICY.

cheers