diff --git a/drivers/tty/tty_audit.c b/drivers/tty/tty_audit.c index 66d53fcf4da0d8616265e39e96239f47d2398e90..df2d735338e216d0a398c50a7e4202afd21417e6 100644 --- a/drivers/tty/tty_audit.c +++ b/drivers/tty/tty_audit.c @@ -144,14 +144,8 @@ void tty_audit_tiocsti(struct tty_struct *tty, char ch) if (tty_audit_push()) return; - if (audit_enabled) { - kuid_t auid; - unsigned int sessionid; - - auid = audit_get_loginuid(current); - sessionid = audit_get_sessionid(current); + if (audit_enabled) tty_audit_log("ioctl=TIOCSTI", dev, &ch, 1); - } } /**