Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:moyo_get_attributes - Revalidate "struct inode".*@obj: Pointer to "struct tomoyo_obj_info".* Returns nothing.

Proto:void tomoyo_get_attributes(struct tomoyo_obj_info *obj)

Type:void

Parameter:

TypeParameterName
struct tomoyo_obj_info *obj
716  struct dentry * dentry = NULL
718  When i < TOMOYO_MAX_PATH_STAT cycle
722  Case i == TOMOYO_PATH1
723  dentry = dentry
724  If Not dentry Then Continue
726  Break
727  Case i == TOMOYO_PATH2
728  dentry = dentry
729  If Not dentry Then Continue
731  Break
732  Default
733  If Not dentry Then Continue
736  Break
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  If inode Then
742  uid = i_uid
743  gid = i_gid
745  mode = i_mode
746  dev = s_dev
747  rdev = i_rdev
750  If i & 1 Then dput(dentry)
Caller
NameDescribe
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().