diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2014-02-28 14:30:45 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-09-23 16:21:26 -0400 |
commit | 4a99854c5840065e7d3a464523cbe1993acb4f00 (patch) | |
tree | 5b1bc32d34f7cfca1ebf81a61c36be7a25fda231 /kernel | |
parent | 91397401bb5072f71e8ce8744ad0bdec3e875a91 (diff) |
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 <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditsc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, | |||
1536 | if (!audit_enabled) | 1536 | if (!audit_enabled) |
1537 | return; | 1537 | return; |
1538 | 1538 | ||
1539 | context->arch = arch; | 1539 | context->arch = syscall_get_arch(); |
1540 | context->major = major; | 1540 | context->major = major; |
1541 | context->argv[0] = a1; | 1541 | context->argv[0] = a1; |
1542 | context->argv[1] = a2; | 1542 | context->argv[1] = a2; |