Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:safesetid_init_securityfs

Proto:static int __init safesetid_init_securityfs(void)

Type:int

Parameter:Nothing

239  If Not Flag indicating whether initialization completed Then Return 0
242  policy_dir = securityfs_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
243  If IS_ERR(policy_dir) Then
244  ret = PTR_ERR(policy_dir)
245  Go to error
248  policy_file = 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
250  If IS_ERR(policy_file) Then
251  ret = PTR_ERR(policy_file)
252  Go to error
255  Return 0
257  error :
258  securityfs_remove - removes a file or directory from the securityfs filesystem*@dentry: a pointer to a the dentry of the file or directory to be removed
259  Return ret