函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int __inode_security_revalidate(struct inode *inode, struct dentry *dentry, bool may_sleep)

返回类型:int

参数:

类型参数名称
struct inode *inode
struct dentry *dentry
boolmay_sleep
271  isec等于selinux_inode(inode)
273  might_sleep_if(may_sleep)
275  如果initialized initialization flag 不等于 initialized
277  如果非may_sleep则返回:负ECHILD
285  inode_doinit_with_dentry(inode, dentry)
287  返回:0
调用者
名称描述
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.