From: Eric Paris Date: Tue, 30 Apr 2013 19:30:32 +0000 (-0400) Subject: audit: fix event coverage of AUDIT_ANOM_LINK X-Git-Tag: v3.10-rc1~5^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b24a30a7305418ff138ff51776fc555ec57c011a;p=pandora-kernel.git audit: fix event coverage of AUDIT_ANOM_LINK The userspace audit tools didn't like the existing formatting of the AUDIT_ANOM_LINK event. It needed to be expanded to emit an AUDIT_PATH event as well, so this implements the change. The bulk of the patch is moving code out of auditsc.c into audit.c and audit.h for general use. It expands audit_log_name to include an optional "struct path" argument for the simple case of just needing to report a pathname. This also makes audit_log_task_info available when syscall auditing is not enabled, since it is needed in either case for process details. Signed-off-by: Kees Cook Reported-by: Steve Grubb --- Reading git-diff-tree failed