mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-06 01:11:00 +01:00
14 lines
358 B
Diff
14 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:
|