tty: audit: Always push audit buffer before TIOCSTI
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 06:55:38 +0000 (22:55 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 00:41:04 +0000 (16:41 -0800)
commit82b5c93a00169614a75d5fa3b5974f832a7857c7
tree267913d9a9ab495b7ee95084e2a1aba6bd746235
parentf17c3662745ea5fd4510c3dff19f9975552e1865
tty: audit: Always push audit buffer before TIOCSTI

The data read from another tty may be relevant to the action of
the TIOCSTI ioctl; log the audit buffer immediately.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_audit.c