[PATCH] ima: fix deadlock when traversing "ima_default_rules".

2024-05-07 Thread GUO Zihua
From: liqiong [ Upstream commit eb0782bbdfd0d7c4786216659277c3fd585afc0e ] The current IMA ruleset is identified by the variable "ima_rules" that default to "&ima_default_rules". When loading a custom policy for the first time, the variable is updated to "&ima_policy_rules" instead. That update

Re: [PATCH] ima: fix deadlock when traversing "ima_default_rules".

2024-05-07 Thread Mimi Zohar
On Tue, 2024-05-07 at 09:37 +, GUO Zihua wrote: > From: liqiong > > [ Upstream commit eb0782bbdfd0d7c4786216659277c3fd585afc0e ] > > The current IMA ruleset is identified by the variable "ima_rules" > that default to "&ima_default_rules". When loading a custom policy > for the first time, th

Re: [PATCH] ima: fix deadlock when traversing "ima_default_rules".

2024-05-07 Thread Guozihua (Scott)
On 2024/5/7 19:54, Mimi Zohar wrote: > On Tue, 2024-05-07 at 09:37 +, GUO Zihua wrote: >> From: liqiong >> >> [ Upstream commit eb0782bbdfd0d7c4786216659277c3fd585afc0e ] >> >> The current IMA ruleset is identified by the variable "ima_rules" >> that default to "&ima_default_rules". When loadi