函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:moyo_get_attributes - Revalidate "struct inode".*@obj: Pointer to "struct tomoyo_obj_info".* Returns nothing.

函数原型:void tomoyo_get_attributes(struct tomoyo_obj_info *obj)

返回类型:void

参数:

类型参数名称
struct tomoyo_obj_info *obj
716  struct dentry * dentry = NULL
718 i小于TOMOYO_MAX_PATH_STAT循环
722  :i恒等于TOMOYO_PATH1
723  dentry等于dentry
724  如果非dentry则继续下一循环
726  退出
727  :i恒等于TOMOYO_PATH2
728  dentry等于dentry
729  如果非dentry则继续下一循环
731  退出
732  默认
733  如果非dentry则继续下一循环
735  dentry等于dget_parent(dentry)
736  退出
738  inode等于d_backing_inode - Get upper or lower inode we should be using*@upper: The upper layer* This is the helper that should be used to get at the inode that will be used* if this dentry were to be opened as a file. The inode may be on the upper
739  如果inode
742  uid等于i_uid
743  gid等于i_gid
745  mode等于i_mode
746  dev等于s_dev
747  rdev等于i_rdev
750  如果i按位与1则dput(dentry)
调用者
名称描述
tomoyo_conditionmoyo_condition - Check condition part.*@r: Pointer to "struct tomoyo_request_info".*@cond: Pointer to "struct tomoyo_condition". Maybe NULL.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().