diff options
| author | Richard Guy Briggs <rgb@redhat.com> | 2016-04-21 14:14:01 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-08 11:51:57 +0200 |
| commit | 545853704b49f0cdc887c0b2a71382423b5f3f76 (patch) | |
| tree | 5cf5f8223cbc0ee76a4b219b6c766073a03fe0be /security/selinux/hooks.c | |
| parent | 1b15e77f444af1acbe1055e48da536e5ce4cc193 (diff) | |
audit: add tty field to LOGIN event
commit db0a6fb5d97afe01fd9c47d37c6daa82d4d4001d upstream.
The tty field was missing from AUDIT_LOGIN events.
Refactor code to create a new function audit_get_tty(), using it to
replace the call in audit_log_task_info() and to add it to
audit_log_set_loginuid(). Lock and bump the kref to protect it, adding
audit_put_tty() alias to decrement it.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
