函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\inode.c Create Date:2022-07-27 20:14:45
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:struct dentry *securityfs_create_file(const char *name, umode_t mode, struct dentry *parent, void *data, const struct file_operations *fops)

返回类型:struct dentry

参数:

类型参数名称
const char *name
umode_tmode
struct dentry *parent
void *data
const struct file_operations *fops
204  返回: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
调用者
名称描述
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