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 /drivers/tty | |
parent | 18900909163758baf2152c9102b1a0953f7f1c30 (diff) | |
download | op-kernel-dev-dc9eb698f441889f2d7926b1cc6f1e14f0787f00.zip op-kernel-dev-dc9eb698f441889f2d7926b1cc6f1e14f0787f00.tar.gz |
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 'drivers/tty')
-rw-r--r-- | drivers/tty/tty_audit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/tty_audit.c b/drivers/tty/tty_audit.c index 6953dc8..1e4e9f3 100644 --- a/drivers/tty/tty_audit.c +++ b/drivers/tty/tty_audit.c @@ -202,10 +202,12 @@ void tty_audit_tiocsti(struct tty_struct *tty, char ch) * reference to the tty audit buffer if available. * Flush the buffer or return an appropriate error code. */ -int tty_audit_push_task(struct task_struct *tsk, kuid_t loginuid, u32 sessionid) +int tty_audit_push_task(struct task_struct *tsk) { struct tty_audit_buf *buf = ERR_PTR(-EPERM); unsigned long flags; + kuid_t loginuid = audit_get_loginuid(tsk); + u32 sessionid = audit_get_sessionid(tsk); if (!lock_task_sighand(tsk, &flags)) return -ESRCH; |