[PATCH 1/2] audit: fix NUL handling in untrusted strings

Miloslav Trmač mitr at redhat.com
Thu Sep 11 18:15:11 UTC 2008


Miloslav Trmač píše v Čt 11. 09. 2008 v 20:10 +0200:
> Yes, that's possible - but then audit_log_n_untrustedstring() would be
> more accurately called audit_log_n_ascii_like_binary_data().
... my original patch (which stops at the first NUL) works the same way
the other interfaces with maximum string length (e.g. strnlen() or
printf ("%.5s", ...)) do.
	Mirek




More information about the Linux-audit mailing list