Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 18:52:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Try reloading inode security labels that have been marked as invalid. The*@may_sleep parameter indicates when sleeping and thus reloading labels is* allowed; when set to false, returns -ECHILD when the label is* invalid

Proto:static int __inode_security_revalidate(struct inode *inode, struct dentry *dentry, bool may_sleep)

Type:int

Parameter:

TypeParameterName
struct inode *inode
struct dentry *dentry
boolmay_sleep
271  isec = selinux_inode(inode)
273  might_sleep_if(may_sleep)
275  If initialized && initialization flag != initialized Then
277  If Not may_sleep Then Return -ECHILD
285  inode_doinit_with_dentry(inode, dentry)
287  Return 0
Caller
NameDescribe
inode_security_rcu
inode_securityGet the security label of an inode.
backing_inode_securityGet the security label of a dentry's backing inode.
dentry_has_permSame as inode_has_perm, but pass explicit audit data containingthe dentry to help the auditing code to more easily generate thepathname if needed.
path_has_permSame as inode_has_perm, but pass explicit audit data containingthe path to help the auditing code to more easily generate thepathname if needed.