aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_audit.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/tty_audit.c')
-rw-r--r--drivers/tty/tty_audit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/tty/tty_audit.c b/drivers/tty/tty_audit.c
index 6953dc82850c..1e4e9f30ea09 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)
202 * reference to the tty audit buffer if available. 202 * reference to the tty audit buffer if available.
203 * Flush the buffer or return an appropriate error code. 203 * Flush the buffer or return an appropriate error code.
204 */ 204 */
205int tty_audit_push_task(struct task_struct *tsk, kuid_t loginuid, u32 sessionid) 205int tty_audit_push_task(struct task_struct *tsk)
206{ 206{
207 struct tty_audit_buf *buf = ERR_PTR(-EPERM); 207 struct tty_audit_buf *buf = ERR_PTR(-EPERM);
208 unsigned long flags; 208 unsigned long flags;
209 kuid_t loginuid = audit_get_loginuid(tsk);
210 u32 sessionid = audit_get_sessionid(tsk);
209 211
210 if (!lock_task_sighand(tsk, &flags)) 212 if (!lock_task_sighand(tsk, &flags))
211 return -ESRCH; 213 return -ESRCH;