]> 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)
commit7b34c2827fae2f0f5eeaed134e4c8d6901d09aaf
tree3918dc5a27345aa2352ad9745519e4095390c661
parent65203558ca6d29176a88a288318d06e11d9455b9
tty: audit: Fix audit source

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

Fixes: 07050c99d062 ("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