Lines Matching full:tty
3 * Creating audit events from TTY input.
12 #include <linux/tty.h>
13 #include "tty.h"
19 dev_t dev; /* The TTY which the data is from */
101 tty_audit_log("tty", buf->dev, buf->data, buf->valid); in tty_audit_buf_push()
127 * tty_audit_fork - Copy TTY audit state for a new task
129 * Set up TTY audit state in @sig from current. @sig needs no locking.
139 void tty_audit_tiocsti(const struct tty_struct *tty, u8 ch) in tty_audit_tiocsti() argument
143 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_tiocsti()
154 * Returns 0 if success, -EPERM if tty audit is disabled
189 audit_log_lost("out of memory in TTY auditing"); in tty_audit_buf_get()
200 * tty_audit_add_data - Add data for TTY auditing.
202 * Audit @data of @size from @tty, if necessary.
204 void tty_audit_add_data(const struct tty_struct *tty, const void *data, in tty_audit_add_data() argument
209 bool icanon = L_ICANON(tty); in tty_audit_add_data()
219 if (tty->driver->type == TTY_DRIVER_TYPE_PTY in tty_audit_add_data()
220 && tty->driver->subtype == PTY_TYPE_MASTER) in tty_audit_add_data()
223 if ((~audit_tty & AUDIT_TTY_LOG_PASSWD) && icanon && !L_ECHO(tty)) in tty_audit_add_data()
231 dev = MKDEV(tty->driver->major, tty->driver->minor_start) + tty->index; in tty_audit_add_data()