Thread (7 messages) 7 messages, 2 authors, 2021-10-25

Re: lsm-stacking: fix broken lsm audit

From: Dmitry Mastykin <hidden>
Date: 2021-10-25 08:27:31
Subsystem: security subsystem, the rest · Maintainers: Paul Moore, James Morris, "Serge E. Hallyn", Linus Torvalds

Hello Casey,
On 8/6/21 11:01 PM, Casey Schaufler wrote:
quoted
On 8/6/2021 12:02 AM, Dmitry Mastykin wrote:
Hello,
These patches address the problem of not processing LSM audit rules.
Problem was introduced in lsm stacking series.
Thank you. I will incorporate these changes in v29.
thank you for the v29.
I think the following fix is still required:

---
 security/security.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/security.c b/security/security.c
index e33c8ccc06a0..fd14064e9106 100644
--- a/security/security.c
+++ b/security/security.c
@@ -2934,7 +2934,7 @@ int security_audit_rule_match(struct lsmblob *blob, u32 field, u32 op,
 			continue;
 		rc = hp->hook.audit_rule_match(blob->secid[hp->lsmid->slot],
 					       field, op,
-					       &lsmrule[hp->lsmid->slot]);
+					       lsmrule[hp->lsmid->slot]);
 		if (rc)
 			return rc;
 	}

Kind regards,
Dmitry Mastykin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help