函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:smack_inode_rename - Smack check on rename*@old_inode: unused*@old_dentry: the old object*@new_inode: unused*@new_dentry: the new object* Read and write access is required on both the old and* new directories

函数原型:static int smack_inode_rename(struct inode *old_inode, struct dentry *old_dentry, struct inode *new_inode, struct dentry *new_dentry)

返回类型:int

参数:

类型参数名称
struct inode *old_inode
struct dentry *old_dentry
struct inode *new_inode
struct dentry *new_dentry
1144  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
1145  smk_ad_setfield_u_fs_path_dentry( & ad, old_dentry)
1147  isp等于Present a pointer to the smack label entry in an inode blob.
1148  rc等于smk_curacc - determine if current has a specific access to an object*@obj_known: a pointer to the object's Smack label entry*@mode: the access requested, in "MAY" format*@a : common audit data* This function checks the current subject label/object label
1149  rc等于smk_bu_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, MAY_READWRITE, rc)
1151  如果rc恒等于0且d_is_positive(new_dentry)则
1152  isp等于Present a pointer to the smack label entry in an inode blob.
1153  smk_ad_setfield_u_fs_path_dentry( & ad, new_dentry)
1154  rc等于smk_curacc - determine if current has a specific access to an object*@obj_known: a pointer to the object's Smack label entry*@mode: the access requested, in "MAY" format*@a : common audit data* This function checks the current subject label/object label
1155  rc等于smk_bu_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, MAY_READWRITE, rc)
1157  返回:rc