audit: use session_info helper
authorRichard Guy Briggs <rgb@redhat.com>
Fri, 16 Nov 2018 21:30:10 +0000 (16:30 -0500)
committerPaul Moore <paul@paul-moore.com>
Mon, 19 Nov 2018 17:31:42 +0000 (12:31 -0500)
commita2c97da11cdb973b752dd434aee9636ce10ee737
tree0892061d8793295861dc20485abf3699b5199f8a
parent0fe3c7fceb500de2d0adfb9dcf292580cd43ea38
audit: use session_info helper

There are still a couple of places (mark and watch config changes) that
open code auid and ses fields in sequence in records instead of using
the audit_log_session_info() helper.  Use the helper.  Adjust the helper
to accommodate being the first fields.  Passes audit-testsuite.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
[PM: fixed misspellings in the description]
Signed-off-by: Paul Moore <paul@paul-moore.com>
kernel/audit.c
kernel/audit_fsnotify.c
kernel/audit_watch.c