Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\file.c Create Date:2022-07-28 19:54:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:revalidate_tty

Proto:static void revalidate_tty(struct aa_label *label)

Type:void

Parameter:

TypeParameterName
struct aa_label *label
658  drop_tty = 0
660  tty = get_current_tty()
661  If Not tty Then Return
664  spin_lock( & protects tty_files list )
665  If Not list_empty - tests whether a list is empty*@head: the list to test. Then
669  file_priv = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & tty_files, structtty_file_private, list)
671  file = file
673  If aa_file_perm - do permission revalidation check & audit for @file*@op: operation being checked*@label: label being enforced (NOT NULL)*@file: file to revalidate access permissions on (NOT NULL)*@request: requested permissions*@in_atomic: whether Then drop_tty = 1
677  spin_unlock( & protects tty_files list )
678  tty_kref_put(tty)
680  If drop_tty Then no_tty()
Caller
NameDescribe
aa_inherit_filesased on selinux's flush_unauthorized_files