函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:security_inode_rename

函数原型:int security_inode_rename(struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry, unsigned int flags)

返回类型:int

参数:

类型参数名称
struct inode *old_dir
struct dentry *old_dentry
struct inode *new_dir
struct dentry *new_dentry
unsigned intflags
1168  如果此条件成立可能性小(为编译器优化)(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) || (d_is_positive(new_dentry) && 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
1172  如果flags按位与Exchange source and dest
1173  err等于call_int_hook(inode_rename, 0, new_dir, new_dentry, old_dir, old_dentry)
1175  如果err则返回:err
1179  返回:call_int_hook(inode_rename, 0, old_dir, old_dentry, new_dir, new_dentry)