Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:securityfs_create_file - create a file in the securityfs filesystem*@name: a pointer to a string containing the name of the file to create.*@mode: the permission that the file should have*@parent: a pointer to the parent dentry for this file

Proto:struct dentry *securityfs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)

Type:struct dentry

Parameter:

TypeParameterName
const char *name
umode_tmode
struct dentry *parent
void *data
const struct file_operations *fops
204  Return securityfs_create_dentry - create a dentry in the securityfs filesystem*@name: a pointer to a string containing the name of the file to create.*@mode: the permission that the file should have*@parent: a pointer to the parent dentry for this file
Caller
NameDescribe
securityfs_create_dirsecurityfs_create_dir - create a directory in the securityfs filesystem*@name: a pointer to a string containing the name of the directory to* create.*@parent: a pointer to the parent dentry for this file. This should be a* directory dentry if set
securityfs_init
tomoyo_create_entrymoyo_create_entry - Create interface files under /sys/kernel/security/tomoyo/ directory.*@name: The name of the interface file.*@mode: The permission of the interface file.*@parent: The parent directory.*@key: Type of interface.* Returns nothing.
tomoyo_initerface_initmoyo_initerface_init - Initialize /sys/kernel/security/tomoyo/ interface.* Returns 0.
entry_create_filery_create_file - create a file entry in the apparmor securityfs*@fs_file: aa_sfs_entry to build an entry for (NOT NULL)*@parent: the parent dentry in the securityfs* Use entry_remove_file to remove entries created with this fn.
aa_create_aafsaa_create_aafs - create the apparmor security filesystem* dentries created here are released by aa_destroy_aafs* Returns: error on failure
safesetid_init_securityfs
lockdown_secfs_init
ima_fs_init
evm_init_secfs