apparmor/kernel-patches/for-mainline/audit-unterminated-string.diff
Andreas Gruenbacher e4541f7879 Check in the revised versions of John's fixes and cleanups.
Check in a series of additional cleanups.
2007-02-11 02:09:31 +00:00

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: