tty: audit: Fix audit source
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 8 Nov 2015 13:52:31 +0000 (08:52 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Nov 2015 00:19:54 +0000 (16:19 -0800)
commit6b2a3d628aa752f0ab825fc6d4d07b09e274d1c1
tree3918dc5a27345aa2352ad9745519e4095390c661
parentf356d7a7ddb5ea545e81c84eecfdf1b5ab4647fc
tty: audit: Fix audit source

The data to audit/record is in the 'from' buffer (ie., the input
read buffer).

Fixes: 72586c6061ab ("n_tty: Fix auditing support for cannonical mode")
Cc: stable <stable@vger.kernel.org> # 4.1+
Cc: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Acked-by: Laura Abbott <labbott@fedoraproject.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c
drivers/tty/tty_audit.c
include/linux/tty.h