audit: consolidate handling of mm->exe_file
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 23 Feb 2015 02:20:00 +0000 (18:20 -0800)
committerPaul Moore <pmoore@redhat.com>
Mon, 23 Feb 2015 21:55:47 +0000 (16:55 -0500)
commit4766b199ef9e1ca6316ee4f8f9d80c2ba1ed0290
tree944e02461fe60016f75677b1661b5a8dd3d20d91
parent5985de6754a6fc22fbf7e4b6033d4bfa0240a63a
audit: consolidate handling of mm->exe_file

This patch adds a audit_log_d_path_exe() helper function
to share how we handle auditing of the exe_file's path.
Used by both audit and auditsc. No functionality is changed.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
[PM: tweaked subject line]
Signed-off-by: Paul Moore <pmoore@redhat.com>
kernel/audit.c
kernel/audit.h
kernel/auditsc.c