Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:create_profile_file

Proto:static struct dentry *create_profile_file(struct dentry *dir, const char *name, struct aa_profile *profile, const struct file_operations *fops)

Type:struct dentry

Parameter:

TypeParameterName
struct dentry *dir
const char *name
struct aa_profile *profile
const struct file_operations *fops
1582  proxy = aa_get_proxy(proxy)
1585  dent = aafs_create_file - create a file 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
1586  If IS_ERR(dent) Then aa_put_proxy(proxy)
1589  Return dent
Caller
NameDescribe
__aafs_profile_mkdirRequires: @profile->ns->lock held