函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:security_inode_setxattr

函数原型:int security_inode_setxattr(struct dentry *dentry, const char *name, const void *value, size_t size, int flags)

返回类型:int

参数:

类型参数名称
struct dentry *dentry
const char *name
const void *value
size_tsize
intflags
1230  如果此条件成立可能性小(为编译器优化)(IS_PRIVATE(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))则返回:0
1236  ret等于call_int_hook(inode_setxattr, 1, dentry, name, value, size, flags)
1239  如果ret恒等于1则ret等于ap_inode_setxattr - Determine whether an xattr may be altered*@dentry: The inode/dentry being altered*@name: The name of the xattr to be changed*@value: The value that the xattr will be changed to*@size: The size of value*@flags: The replacement flag*
1241  如果ret则返回:ret
1243  ret等于ima_inode_setxattr(dentry, name, value, size)
1244  如果ret则返回:ret
1246  返回:evm_inode_setxattr(dentry, name, value, size)