mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 17:01:00 +01:00
13 lines
358 B
Diff
13 lines
358 B
Diff
Index: b/kernel/auditsc.c
|
|
===================================================================
|
|
--- a/kernel/auditsc.c
|
|
+++ b/kernel/auditsc.c
|
|
@@ -751,7 +751,7 @@ void audit_log_task_context(struct audit
|
|
if (len < 0 )
|
|
goto error_path;
|
|
|
|
- audit_log_format(ab, " subj=%s", ctx);
|
|
+ audit_log_format(ab, " subj=%.*s", (int)len, ctx);
|
|
return;
|
|
|
|
error_path:
|