Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:smack_inode_copy_up

Proto:static int smack_inode_copy_up(struct dentry *dentry, struct cred **new)

Type:int

Parameter:

TypeParameterName
struct dentry *dentry
struct cred **new
4513  new_creds = new
4515  If (new_creds == NULL) Then
4516  new_creds = prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
4517  If (new_creds == NULL) Then Return -ENOMEM
4521  tsp = smack_cred(new_creds)
4526  isp = smack_inode(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.)
4527  skp = label of the fso
4528  label for access control = skp
4529  new = new_creds
4530  Return 0