Skip to content

Commit

Permalink
audit: __audit_syscall_entry: ignore arch arg and call syscall_get_ar…
Browse files Browse the repository at this point in the history
…ch() 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 <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
  • Loading branch information
Richard Guy Briggs authored and Eric Paris committed Sep 23, 2014
1 parent 9139740 commit 4a99854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/auditsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4a99854

Please sign in to comment.