Re: security: ima_policy.c:427:17: error: too many arguments to function 'ima_filter_rule_init'

From: Paul Moore
Date: Thu Jun 13 2024 - 13:36:28 EST


On Thu, Jun 13, 2024 at 8:43 AM Naresh Kamboju
<naresh.kamboju@xxxxxxxxxx> wrote:
>
> The arm and arm64 kselftests builds started failing on Linux next-20240613 tag.
> Please find the build log and related links below.
>
> Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>

Thank you, the same error was reported by the kernel test robot
overnight. I'm going to look at it today, I suspect it is a conflict
between the LSM and IMA/EVM branches. FWIW, I compiled and booted a
kernel using the LSM changes yesterday without problem.

> Build error:
> --------
> security/integrity/ima/ima_policy.c: In function 'ima_lsm_copy_rule':
> security/integrity/ima/ima_policy.c:427:17: error: too many arguments
> to function 'ima_filter_rule_init'
> 427 | ima_filter_rule_init(nentry->lsm[i].type, Audit_equal,
> | ^~~~~~~~~~~~~~~~~~~~

--
paul-moore.com