Re: [PATCH v9 15/23] ima: Implement hierarchical processing of file accesses

From: Stefan Berger
Date: Wed Jan 26 2022 - 17:05:28 EST



On 1/26/22 07:39, Christian Brauner wrote:

That'll break compilation as youre checking:

ns == &init_ima_ns below.

security/integrity/ima/ima_main.c: In function ‘ima_post_read_file’:
security/integrity/ima/ima_main.c:798:7: error: ‘ns’ undeclared (first use in this function); did you mean ‘insl’?
798 | if (ns == &init_ima_ns &&
| ^~
| insl
security/integrity/ima/ima_main.c:798:7: note: each undeclared identifier is reported only once for each function it appears in

it's fixed later in the series but you might want to fix this up here as
well.

Argh. Fixed.


Fwiw, a good strategy is to:

git rebase -i -x "make LOCALVERSION=-imans" v5.16-rc2

I did test it but maybe something distracted me....

while :; do make -j$(nproc) security kernel || break ; git rebase --continue || break; done