|
@@ -865,7 +865,7 @@ static inline struct audit_context *audit_take_context(struct task_struct *tsk,
|
|
|
audit_filter_inodes(tsk, context);
|
|
|
}
|
|
|
|
|
|
- tsk->audit_context = NULL;
|
|
|
+ audit_set_context(tsk, NULL);
|
|
|
return context;
|
|
|
}
|
|
|
|
|
@@ -952,7 +952,7 @@ int audit_alloc(struct task_struct *tsk)
|
|
|
}
|
|
|
context->filterkey = key;
|
|
|
|
|
|
- tsk->audit_context = context;
|
|
|
+ audit_set_context(tsk, context);
|
|
|
set_tsk_thread_flag(tsk, TIF_SYSCALL_AUDIT);
|
|
|
return 0;
|
|
|
}
|
|
@@ -1554,7 +1554,6 @@ void __audit_syscall_entry(int major, unsigned long a1, unsigned long a2,
|
|
|
*/
|
|
|
void __audit_syscall_exit(int success, long return_code)
|
|
|
{
|
|
|
- struct task_struct *tsk = current;
|
|
|
struct audit_context *context;
|
|
|
|
|
|
if (success)
|
|
@@ -1589,7 +1588,7 @@ void __audit_syscall_exit(int success, long return_code)
|
|
|
kfree(context->filterkey);
|
|
|
context->filterkey = NULL;
|
|
|
}
|
|
|
- tsk->audit_context = context;
|
|
|
+ audit_set_context(current, context);
|
|
|
}
|
|
|
|
|
|
static inline void handle_one(const struct inode *inode)
|