]> git.baikalelectronics.ru Git - kernel.git/commit
ima: Do not print policy rule with inactive LSM labels
authorStefan Berger <stefanb@linux.ibm.com>
Tue, 1 Feb 2022 20:37:10 +0000 (15:37 -0500)
committerMimi Zohar <zohar@linux.ibm.com>
Wed, 2 Feb 2022 16:59:54 +0000 (11:59 -0500)
commit7d7c2d49a5e93126652273b85b7fc077b7865a04
tree504c5dbd0728afec519023fb2a9b948b15bf208f
parentc765158ac533a41f95deb68cdf95c82d22c66468
ima: Do not print policy rule with inactive LSM labels

Before printing a policy rule scan for inactive LSM labels in the policy
rule. Inactive LSM labels are identified by args_p != NULL and
rule == NULL.

Fixes: 26c1c2fa6873 ("ima: ima/lsm policy rule loading logic bug fixes")
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Cc: <stable@vger.kernel.org> # v5.6+
Acked-by: Christian Brauner <brauner@kernel.org>
[zohar@linux.ibm.com: Updated "Fixes" tag]
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
security/integrity/ima/ima_policy.c