Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:aafs_create_symlink - create a symlink in the apparmorfs filesystem*@name: name of dentry to create*@parent: parent directory for this dentry*@target: if symlink, symlink target string*@private: private data*@iops: struct of inode_operations that should

Proto:static struct dentry *aafs_create_symlink(const char *name, struct dentry *parent, const char *target, void *private, const struct inode_operations *iops)

Type:struct dentry

Parameter:

TypeParameterName
const char *name
struct dentry *parent
const char *target
void *private
const struct inode_operations *iops
361  char * link = NULL
363  If target Then
364  If Not link Then Return ERR_PTR( - ENOMEM)
367  dent = aafs_create - create a dentry in the apparmorfs filesystem*@name: name of dentry to create*@mode: permissions the file should have*@parent: parent directory for this dentry*@data: data to store on inode
369  If IS_ERR(dent) Then kfree(link)
372  Return dent
Caller
NameDescribe
__aafs_profile_mkdirRequires: @profile->ns->lock held