audit: stop pushing loginid, uid, sessionid as arguments
We always use current. Stop pulling this when the skb comes in and pushing it around as arguments. Just get it at the end when you need it. Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
parent
1890090916
commit
dc9eb698f4
5 changed files with 52 additions and 83 deletions
|
|
@ -517,8 +517,7 @@ extern void tty_audit_exit(void);
|
|||
extern void tty_audit_fork(struct signal_struct *sig);
|
||||
extern void tty_audit_tiocsti(struct tty_struct *tty, char ch);
|
||||
extern void tty_audit_push(struct tty_struct *tty);
|
||||
extern int tty_audit_push_task(struct task_struct *tsk,
|
||||
kuid_t loginuid, u32 sessionid);
|
||||
extern int tty_audit_push_task(struct task_struct *tsk);
|
||||
#else
|
||||
static inline void tty_audit_add_data(struct tty_struct *tty,
|
||||
unsigned char *data, size_t size, unsigned icanon)
|
||||
|
|
@ -536,8 +535,7 @@ static inline void tty_audit_fork(struct signal_struct *sig)
|
|||
static inline void tty_audit_push(struct tty_struct *tty)
|
||||
{
|
||||
}
|
||||
static inline int tty_audit_push_task(struct task_struct *tsk,
|
||||
kuid_t loginuid, u32 sessionid)
|
||||
static inline int tty_audit_push_task(struct task_struct *tsk)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue