Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\smack\smack_lsm.c Create Date:2022-07-28 19:20:29
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:smack_inode_link - Smack check on link*@old_dentry: the existing object*@dir: unused*@new_dentry: the new object* Returns 0 if access is permitted, an error code otherwise

Proto:static int smack_inode_link(struct dentry *old_dentry, struct inode *dir, struct dentry *new_dentry)

Type:int

Parameter:

TypeParameterName
struct dentry *old_dentry
struct inode *dir
struct dentry *new_dentry
1038  some inline functions to set up audit data* they do nothing if CONFIG_AUDIT is not set
1039  smk_ad_setfield_u_fs_path_dentry( & ad, old_dentry)
1041  isp = Present a pointer to the smack label entry in an inode blob.
1042  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
1043  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_WRITE, rc)
1045  If rc == 0 && d_is_positive(new_dentry) Then
1046  isp = Present a pointer to the smack label entry in an inode blob.
1047  smk_ad_setfield_u_fs_path_dentry( & ad, new_dentry)
1048  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
1049  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_WRITE, rc)
1052  Return rc