From: Richard Guy Briggs Date: Fri, 28 Feb 2014 19:30:45 +0000 (-0500) Subject: audit: __audit_syscall_entry: ignore arch arg and call syscall_get_arch() directly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4a99854c5840065e7d3a464523cbe1993acb4f00;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git audit: __audit_syscall_entry: ignore arch arg and call syscall_get_arch() directly Since every arch should have syscall_get_arch() defined, stop using the function argument and just collect this ourselves. We do not drop the argument as fixing some code paths (in assembly) to not pass this first argument is non-trivial. The argument will be dropped when that is fixed. Signed-off-by: Richard Guy Briggs Signed-off-by: Eric Paris --- diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 21eae3c05ec0..dff2a2325655 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c @@ -1536,7 +1536,7 @@ void __audit_syscall_entry(int arch, int major, if (!audit_enabled) return; - context->arch = arch; + context->arch = syscall_get_arch(); context->major = major; context->argv[0] = a1; context->argv[1] = a2;