Home
last modified time | relevance | path

Searched refs:tty (Results 1 – 2 of 2) sorted by relevance

/security/apparmor/
A Dfile.c656 struct tty_struct *tty; in revalidate_tty() local
659 tty = get_current_tty(); in revalidate_tty()
660 if (!tty) in revalidate_tty()
663 spin_lock(&tty->files_lock); in revalidate_tty()
664 if (!list_empty(&tty->tty_files)) { in revalidate_tty()
668 file_priv = list_first_entry(&tty->tty_files, in revalidate_tty()
676 spin_unlock(&tty->files_lock); in revalidate_tty()
677 tty_kref_put(tty); in revalidate_tty()
/security/selinux/
A Dhooks.c2433 struct tty_struct *tty; in flush_unauthorized_files() local
2437 tty = get_current_tty(); in flush_unauthorized_files()
2438 if (tty) { in flush_unauthorized_files()
2439 spin_lock(&tty->files_lock); in flush_unauthorized_files()
2440 if (!list_empty(&tty->tty_files)) { in flush_unauthorized_files()
2448 file_priv = list_first_entry(&tty->tty_files, in flush_unauthorized_files()
2454 spin_unlock(&tty->files_lock); in flush_unauthorized_files()
2455 tty_kref_put(tty); in flush_unauthorized_files()

Completed in 51 milliseconds