Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78bb5d0b authored by Dmitry Kasatkin's avatar Dmitry Kasatkin Committed by Mimi Zohar
Browse files

ima: report policy load status



Audit messages are rate limited, often causing the policy update
info to not be visible.  Report policy loading status also using
pr_info.

Changes in v2:
* reporting moved to ima_release_policy to notice parsing errors
* reporting both completed and failed status

Signed-off-by: default avatarDmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: default avatarMimi Zohar <zohar@linux.vnet.ibm.com>
parent 456f5fd3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -311,6 +311,8 @@ static int ima_open_policy(struct inode *inode, struct file *filp)
 */
static int ima_release_policy(struct inode *inode, struct file *file)
{
	pr_info("IMA: policy update %s\n",
		valid_policy ? "completed" : "failed");
	if (!valid_policy) {
		ima_delete_rules();
		valid_policy = 1;