函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:selinux_inode_setattr

函数原型:static int selinux_inode_setattr(struct dentry *dentry, struct iattr *iattr)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
struct iattr *iattr
3092  cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
3093  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
3094  ia_valid等于ia_valid
3095  av等于FILE__WRITE
3098  如果ia_valid按位与Not a change, but a change it
3099  ia_valid与等于ATTR_KILL_SUID按位或ATTR_KILL_SGID按位或Attribute flags. These should be or-ed together to figure out what* has been changed!按位或Not a change, but a change it 的值的反
3101  如果非ia_valid则返回:0
3105  如果ia_valid按位与Attribute flags. These should be or-ed together to figure out what* has been changed!按位或ATTR_UID按位或ATTR_GID按位或ATTR_ATIME_SET按位或ATTR_MTIME_SET按位或ATTR_TIMES_SET的值则返回:Same as inode_has_perm, but pass explicit audit data containingthe dentry to help the auditing code to more easily generate thepathname if needed.
3109  如果selinux_policycap_openperm()且s_magic不等于SOCKFS_MAGICia_valid按位与ATTR_SIZE且非ia_valid按位与ATTR_FILE的值则av或等于FILE__OPEN
3115  返回:Same as inode_has_perm, but pass explicit audit data containingthe dentry to help the auditing code to more easily generate thepathname if needed.