diff options
author | Richard Guy Briggs <rgb@redhat.com> | 2014-03-04 10:38:06 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2014-09-23 16:21:28 -0400 |
commit | b4f0d3755c5e9cc86292d5fd78261903b4f23d4a (patch) | |
tree | 34cddc7f4fc142be54c487e95335d469eda10e5e /kernel | |
parent | a17c8b54dc738c4fda31e8be0302cd131a04c19f (diff) |
audit: x86: drop arch from __audit_syscall_entry() interface
Since the arch is found locally in __audit_syscall_entry(), there is no need to
pass it in as a parameter. Delete it from the parameter list.
x86* was the only arch to call __audit_syscall_entry() directly and did so from
assembly code.
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: x86@kernel.org
Cc: linux-kernel@vger.kernel.org
Cc: linux-audit@redhat.com
Signed-off-by: Eric Paris <eparis@redhat.com>
---
As this patch relies on changes in the audit tree, I think it
appropriate to send it through my tree rather than the x86 tree.
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/auditsc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/auditsc.c b/kernel/auditsc.c index 9f03ac205e1f..4e17443fd1ef 100644 --- a/kernel/auditsc.c +++ b/kernel/auditsc.c | |||
@@ -1506,7 +1506,6 @@ void __audit_free(struct task_struct *tsk) | |||
1506 | 1506 | ||
1507 | /** | 1507 | /** |
1508 | * audit_syscall_entry - fill in an audit record at syscall entry | 1508 | * audit_syscall_entry - fill in an audit record at syscall entry |
1509 | * @arch: architecture type | ||
1510 | * @major: major syscall type (function) | 1509 | * @major: major syscall type (function) |
1511 | * @a1: additional syscall register 1 | 1510 | * @a1: additional syscall register 1 |
1512 | * @a2: additional syscall register 2 | 1511 | * @a2: additional syscall register 2 |
@@ -1521,9 +1520,8 @@ void __audit_free(struct task_struct *tsk) | |||
1521 | * will only be written if another part of the kernel requests that it | 1520 | * will only be written if another part of the kernel requests that it |
1522 | * be written). | 1521 | * be written). |
1523 | */ | 1522 | */ |
1524 | void __audit_syscall_entry(int arch, int major, | 1523 | void __audit_syscall_entry(int major, unsigned long a1, unsigned long a2, |
1525 | unsigned long a1, unsigned long a2, | 1524 | unsigned long a3, unsigned long a4) |
1526 | unsigned long a3, unsigned long a4) | ||
1527 | { | 1525 | { |
1528 | struct task_struct *tsk = current; | 1526 | struct task_struct *tsk = current; |
1529 | struct audit_context *context = tsk->audit_context; | 1527 | struct audit_context *context = tsk->audit_context; |