函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\apparmor\file.c Create Date:2022-07-27 21:42:40
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:revalidate_tty

函数原型:static void revalidate_tty(struct aa_label *label)

返回类型:void

参数:

类型参数名称
struct aa_label *label
658  drop_tty等于0
660  tty等于get_current_tty()
661  如果非tty则返回
664  加自旋锁
665  如果非链表为空
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  如果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 drop_tty等于1
677  自旋锁解锁
678  tty_kref_put(tty)
680  如果drop_ttyno_tty()
调用者
名称描述
aa_inherit_filesased on selinux's flush_unauthorized_files