[PATCH 1/3] security/security: remove extra address-of in hook.audit_rule_match call
Dmitry Mastykin
dmastykin at astralinux.ru
Fri Aug 6 07:02:43 UTC 2021
Wrong address was passed to audit_rule_match hooks instead of
rule's address.
Signed-off-by: Dmitry Mastykin <dmastykin at astralinux.ru>
---
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;
}
--
2.11.0
More information about the Linux-security-module-archive
mailing list