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

Alexander Guril alexander.guril02 at gmail.com
Mon Dec 21 14:32:52 UTC 2020


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

Signed-off-by: Alexander Guril <alexander.guril02 at gmail.com>
---
 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



More information about the Linux-security-module-archive mailing list