]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit11f227beeb1e4258e6e7e6ad8a80668253a76831
tree3918dc5a27345aa2352ad9745519e4095390c661
parente8becfe843c2667bdeca5b32500ae7ffeb3fa61b
tty: audit: Fix audit source

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

Fixes: 2a08efdcb63f ("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