diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/audit.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/audit.h b/include/linux/audit.h index 22cfddb75566..bb1c3ab611bf 100644 --- a/include/linux/audit.h +++ b/include/linux/audit.h | |||
| @@ -26,6 +26,7 @@ | |||
| 26 | #include <linux/sched.h> | 26 | #include <linux/sched.h> |
| 27 | #include <linux/ptrace.h> | 27 | #include <linux/ptrace.h> |
| 28 | #include <uapi/linux/audit.h> | 28 | #include <uapi/linux/audit.h> |
| 29 | #include <asm/syscall.h> | ||
| 29 | 30 | ||
| 30 | struct audit_sig_info { | 31 | struct audit_sig_info { |
| 31 | uid_t uid; | 32 | uid_t uid; |
| @@ -141,12 +142,12 @@ static inline void audit_free(struct task_struct *task) | |||
| 141 | if (unlikely(task->audit_context)) | 142 | if (unlikely(task->audit_context)) |
| 142 | __audit_free(task); | 143 | __audit_free(task); |
| 143 | } | 144 | } |
| 144 | static inline void audit_syscall_entry(int arch, int major, unsigned long a0, | 145 | static inline void audit_syscall_entry(int major, unsigned long a0, |
| 145 | unsigned long a1, unsigned long a2, | 146 | unsigned long a1, unsigned long a2, |
| 146 | unsigned long a3) | 147 | unsigned long a3) |
| 147 | { | 148 | { |
| 148 | if (unlikely(current->audit_context)) | 149 | if (unlikely(current->audit_context)) |
| 149 | __audit_syscall_entry(arch, major, a0, a1, a2, a3); | 150 | __audit_syscall_entry(syscall_get_arch(), major, a0, a1, a2, a3); |
| 150 | } | 151 | } |
| 151 | static inline void audit_syscall_exit(void *pt_regs) | 152 | static inline void audit_syscall_exit(void *pt_regs) |
| 152 | { | 153 | { |
| @@ -322,7 +323,7 @@ static inline int audit_alloc(struct task_struct *task) | |||
| 322 | } | 323 | } |
| 323 | static inline void audit_free(struct task_struct *task) | 324 | static inline void audit_free(struct task_struct *task) |
| 324 | { } | 325 | { } |
| 325 | static inline void audit_syscall_entry(int arch, int major, unsigned long a0, | 326 | static inline void audit_syscall_entry(int major, unsigned long a0, |
| 326 | unsigned long a1, unsigned long a2, | 327 | unsigned long a1, unsigned long a2, |
| 327 | unsigned long a3) | 328 | unsigned long a3) |
| 328 | { } | 329 | { } |
