From: Miloslav Trmac Date: Mon, 13 Oct 2008 09:35:15 +0000 (+0100) Subject: audit: Handle embedded NUL in TTY input auditing X-Git-Tag: v2.6.28-rc1~671 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7459b6ff36ab5e7d160980c3cb2be2f8cd194778;p=pandora-kernel.git audit: Handle embedded NUL in TTY input auditing Data read from a TTY can contain an embedded NUL byte (e.g. after pressing Ctrl-2, or sent to a PTY). After the previous patch, the data would be logged only up to the first NUL. This patch modifies the AUDIT_TTY record to always use the hexadecimal format, which does not terminate at the first NUL byte. The vast majority of recorded TTY input data will contain either ' ' or '\n', so the hexadecimal format would have been used anyway. Signed-off-by: Miloslav Trmac Signed-off-by: Alan Cox Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed