]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
n_tty: Fix auditing support for cannonical mode
authorLaura Abbott <labbott@fedoraproject.org>
Thu, 14 May 2015 18:42:17 +0000 (11:42 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Fri, 3 Jul 2015 16:34:34 +0000 (12:34 -0400)
commita8492bea3106aebffe1ecf85d2582bfd6649d87e
tree8b2db554dde9b5f81533cd019100cae2bc3b50c0
parentcea5254f9ea577360765b808f23703a865154243
n_tty: Fix auditing support for cannonical mode

[ Upstream commit 72586c6061ab8c23ffd9f301ed19782a44ff5f04 ]

Commit 32f13521ca68bc624ff6effc77f308a52b038bf0
("n_tty: Line copy to user buffer in canonical mode")
changed cannonical mode copying to use copy_to_user
but missed adding the call to the audit framework.
Add in the appropriate functions to get audit support.

Fixes: 32f13521ca68 ("n_tty: Line copy to user buffer in canonical mode")
Reported-by: Miloslav Trmač <mitr@redhat.com>
Signed-off-by: Laura Abbott <labbott@fedoraproject.org>
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
drivers/tty/n_tty.c