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 /include/linux/audit.h | |
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 'include/linux/audit.h')
-rw-r--r-- | include/linux/audit.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 783157b289e8..1ae00891aff9 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
@@ -115,8 +115,7 @@ extern void audit_log_session_info(struct audit_buffer *ab); | |||
115 | /* Public API */ | 115 | /* Public API */ |
116 | extern int audit_alloc(struct task_struct *task); | 116 | extern int audit_alloc(struct task_struct *task); |
117 | extern void __audit_free(struct task_struct *task); | 117 | extern void __audit_free(struct task_struct *task); |
118 | extern void __audit_syscall_entry(int arch, | 118 | extern void __audit_syscall_entry(int major, unsigned long a0, unsigned long a1, |
119 | int major, unsigned long a0, unsigned long a1, | ||
120 | unsigned long a2, unsigned long a3); | 119 | unsigned long a2, unsigned long a3); |
121 | extern void __audit_syscall_exit(int ret_success, long ret_value); | 120 | extern void __audit_syscall_exit(int ret_success, long ret_value); |
122 | extern struct filename *__audit_reusename(const __user char *uptr); | 121 | extern struct filename *__audit_reusename(const __user char *uptr); |
@@ -148,7 +147,7 @@ static inline void audit_syscall_entry(int major, unsigned long a0, | |||
148 | unsigned long a3) | 147 | unsigned long a3) |
149 | { | 148 | { |
150 | if (unlikely(current->audit_context)) | 149 | if (unlikely(current->audit_context)) |
151 | __audit_syscall_entry(syscall_get_arch(), major, a0, a1, a2, a3); | 150 | __audit_syscall_entry(major, a0, a1, a2, a3); |
152 | } | 151 | } |
153 | static inline void audit_syscall_exit(void *pt_regs) | 152 | static inline void audit_syscall_exit(void *pt_regs) |
154 | { | 153 | { |