Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_inode_copy_up

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

Type:int

Parameter:

TypeParameterName
struct dentry *src
struct cred **new
3436  new_creds = new
3438  If (new_creds == NULL) Then
3439  new_creds = prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
3440  If Not new_creds Then Return -ENOMEM
3444  tsec = selinux_cred(new_creds)
3446  selinux_inode_getsecid(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., & sid)
3447  fscreate SID = sid
3448  new = new_creds
3449  Return 0