audit: Simply AUDIT_TTY_SET and AUDIT_TTY_GET
authorEric W. Biederman <ebiederm@xmission.com>
Tue, 11 Sep 2012 06:43:14 +0000 (23:43 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Tue, 18 Sep 2012 01:04:33 +0000 (18:04 -0700)
commit8aa14b64981ee4b95959e1ed331b672d053aab62
tree961b0db4505ea2885562a0fd230bf67503f5cd28
parentf95732e2e0a649c148be0242b72e3c7473092687
audit: Simply AUDIT_TTY_SET and AUDIT_TTY_GET

Use current instead of looking up the current up the current task by
process identifier.  Netlink requests are processed in trhe context of
the sending task so this is safe.

Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric Paris <eparis@redhat.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
kernel/audit.c