Miloslav Trmac
7459b6ff36
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 <mitr@redhat.com>
Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-13 09:51:39 -07:00
..
2008-08-25 12:28:33 +02:00
2008-08-31 01:23:17 -07:00
2008-10-13 09:51:39 -07:00
2008-08-20 15:40:31 -07:00
2008-07-25 10:53:43 -07:00
2008-08-16 17:21:58 -07:00
2008-07-25 10:53:43 -07:00
2008-08-28 10:47:42 +10:00
2008-08-23 12:14:12 -07:00
2008-08-06 13:24:41 -07:00
2008-07-16 23:27:02 +02:00
2008-07-15 12:24:55 +10:00
2008-10-13 09:51:38 -07:00
2008-07-25 10:53:43 -07:00
2008-08-07 09:55:48 +01:00
2008-07-26 13:22:56 -07:00
2008-08-04 16:59:56 -07:00
2008-10-13 09:51:38 -07:00
2008-07-20 17:12:36 -07:00
2008-07-22 13:03:28 -07:00
2008-07-20 17:12:36 -07:00
2008-07-25 10:53:43 -07:00
2008-10-13 09:51:37 -07:00
2008-08-04 12:02:00 +10:00
2008-07-25 12:06:06 +10:00
2008-07-25 12:06:06 +10:00
2008-07-25 12:06:06 +10:00
2008-08-20 12:40:07 +02:00
2008-08-04 12:02:00 +10:00
2008-07-22 13:03:28 -07:00
2008-07-22 13:13:47 -07:00
2008-08-07 18:07:10 -07:00
2008-07-21 00:55:14 -04:00
2008-07-21 21:54:41 -07:00
2008-08-07 18:07:10 -07:00
2008-07-24 10:47:15 -07:00
2008-07-21 21:54:41 -07:00
2008-07-17 11:34:49 -07:00
2008-07-22 13:03:28 -07:00
2008-07-24 10:47:14 -07:00
2008-07-30 09:41:45 -07:00
2008-07-22 13:03:28 -07:00
2008-07-20 17:12:34 -07:00
2008-07-20 17:12:34 -07:00
2008-07-23 09:36:23 -07:00
2008-07-26 16:29:24 +01:00
2008-07-25 10:53:43 -07:00
2008-07-20 17:12:34 -07:00
2008-10-09 08:56:05 +02:00
2008-07-21 21:54:41 -07:00
2008-07-22 13:03:28 -07:00
2008-07-20 17:12:38 -07:00
2008-07-20 17:12:38 -07:00
2008-07-22 13:03:28 -07:00
2008-07-20 17:12:38 -07:00
2008-08-30 00:23:51 -07:00
2008-07-20 17:12:34 -07:00
2008-07-26 20:29:03 -07:00
2008-07-21 21:54:41 -07:00
2008-07-20 17:12:38 -07:00
2008-07-22 13:03:28 -07:00
2008-07-24 10:47:30 -07:00
2008-10-13 09:51:39 -07:00
2008-08-16 17:21:58 -07:00
2008-08-07 04:05:46 -04:00
2008-08-07 04:05:46 -04:00
2008-10-13 09:51:39 -07:00
2008-09-26 10:36:42 -05:00
2008-08-27 14:37:09 -07:00
2008-08-01 12:50:15 -07:00
2008-07-21 21:54:41 -07:00
2008-07-21 21:54:41 -07:00
2008-07-25 12:06:06 +10:00
2008-07-26 20:29:03 -07:00
2008-08-15 10:34:07 -07:00
2008-08-15 10:34:07 -07:00