DORMANTno replies

[PATCH] Security/Apparmor: Fixed a bracket problem in audit.c

From: Alexander Guril <hidden>
Date: 2020-12-21 18:35:03
Subsystem: apparmor security module, security subsystem, the rest · Maintainers: John Johansen, John Johansen, Georgia Garcia, Paul Moore, James Morris, "Serge E. Hallyn", Linus Torvalds

This patch fixes a bracket problem in security/apparmor/audit.c

Signed-off-by: Alexander Guril <redacted>
---
 security/apparmor/audit.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/security/apparmor/audit.c b/security/apparmor/audit.c
index f7e97c7e80f3..63c4367f97b7 100644
--- a/security/apparmor/audit.c
+++ b/security/apparmor/audit.c
@@ -61,9 +61,8 @@ static void audit_pre(struct audit_buffer *ab, void *ca)
 				 aa_audit_type[aad(sa)->type]);
 	}
 
-	if (aad(sa)->op) {
+	if (aad(sa)->op)
 		audit_log_format(ab, " operation=\"%s\"", aad(sa)->op);
-	}
 
 	if (aad(sa)->info) {
 		audit_log_format(ab, " info=\"%s\"", aad(sa)->info);
-- 
2.29.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help