diff options
author | Eric Paris <eparis@redhat.com> | 2013-04-19 13:23:09 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2013-04-30 15:31:28 -0400 |
commit | dc9eb698f441889f2d7926b1cc6f1e14f0787f00 (patch) | |
tree | acdd37f268633b38b370fe0725f57ccd0d4fcadc /include/linux/tty.h | |
parent | 18900909163758baf2152c9102b1a0953f7f1c30 (diff) | |
download | linux-stable-dc9eb698f441889f2d7926b1cc6f1e14f0787f00.tar.gz linux-stable-dc9eb698f441889f2d7926b1cc6f1e14f0787f00.tar.bz2 linux-stable-dc9eb698f441889f2d7926b1cc6f1e14f0787f00.zip |
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>
Diffstat (limited to 'include/linux/tty.h')
-rw-r--r-- | include/linux/tty.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/tty.h b/include/linux/tty.h index 8db1b569c37a..78e378b3971c 100644 --- a/include/linux/tty.h +++ b/include/linux/tty.h @@ -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; } |