]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
audit: __audit_syscall_entry: ignore arch arg and call syscall_get_arch() directly
authorRichard Guy Briggs <rgb@redhat.com>
Fri, 28 Feb 2014 19:30:45 +0000 (14:30 -0500)
committerEric Paris <eparis@redhat.com>
Tue, 15 Apr 2014 21:10:21 +0000 (17:10 -0400)
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 <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
kernel/auditsc.c

index f251a5e8d17ad2285569466e442ae461fe17948e..f78ac4b4be8e7244e569f05e5dbe988467756da0 100644 (file)
@@ -1527,7 +1527,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;