audit: move audit_get_tty to reduce scope and kabi changes
authorRichard Guy Briggs <rgb@redhat.com>
Tue, 28 Jun 2016 16:07:50 +0000 (12:07 -0400)
committerPaul Moore <paul@paul-moore.com>
Tue, 28 Jun 2016 19:48:48 +0000 (15:48 -0400)
commit3f5be2da8565c1cce5655bb0948fcc957c6eb6c6
tree114b88bf2c039380ce333b5bca2265ebf9c4fa8c
parent76a658c20efd541a62838d9ff68ce94170d7a549
audit: move audit_get_tty to reduce scope and kabi changes

The only users of audit_get_tty and audit_put_tty are internal to
audit, so move it out of include/linux/audit.h to kernel.h and create
a proper function rather than inlining it.  This also reduces kABI
changes.

Suggested-by: Paul Moore <pmoore@redhat.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: line wrapped description]
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/audit.h
kernel/audit.c
kernel/audit.h
kernel/auditsc.c