mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[PATCH] drop task argument of audit_syscall_{entry,exit}
... it's always current, and that's a good thing - allows simpler locking. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
e495149b17
commit
5411be59db
11 changed files with 27 additions and 33 deletions
|
|
@ -736,10 +736,11 @@ void audit_free(struct task_struct *tsk)
|
|||
* will only be written if another part of the kernel requests that it
|
||||
* be written).
|
||||
*/
|
||||
void audit_syscall_entry(struct task_struct *tsk, int arch, int major,
|
||||
void audit_syscall_entry(int arch, int major,
|
||||
unsigned long a1, unsigned long a2,
|
||||
unsigned long a3, unsigned long a4)
|
||||
{
|
||||
struct task_struct *tsk = current;
|
||||
struct audit_context *context = tsk->audit_context;
|
||||
enum audit_state state;
|
||||
|
||||
|
|
@ -817,12 +818,11 @@ void audit_syscall_entry(struct task_struct *tsk, int arch, int major,
|
|||
* message), then write out the syscall information. In call cases,
|
||||
* free the names stored from getname().
|
||||
*/
|
||||
void audit_syscall_exit(struct task_struct *tsk, int valid, long return_code)
|
||||
void audit_syscall_exit(int valid, long return_code)
|
||||
{
|
||||
struct task_struct *tsk = current;
|
||||
struct audit_context *context;
|
||||
|
||||
/* tsk == current */
|
||||
|
||||
get_task_struct(tsk);
|
||||
task_lock(tsk);
|
||||
context = audit_get_context(tsk, valid, return_code);
|
||||
|
|
|
|||
Loading…
Reference in a new issue