Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\integrity\evm\evm_secfs.c Create Date:2022-07-28 20:00:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:evm_init_secfs

Proto:int __init evm_init_secfs(void)

Type:int

Parameter:Nothing

285  error = 0
287  evm_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
288  If Not evm_dir || IS_ERR(evm_dir) Then Return -EFAULT
291  evm_init_tpm = 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
293  If Not evm_init_tpm || IS_ERR(evm_init_tpm) Then
294  error = -EFAULT
295  Go to out
298  evm_symlink = securityfs_create_symlink - create a symlink in the securityfs filesystem*@name: a pointer to a string containing the name of the symlink to* create.*@parent: a pointer to the parent dentry for the symlink. This should be a* directory dentry if set
300  If Not evm_symlink || IS_ERR(evm_symlink) Then
301  error = -EFAULT
302  Go to out
305  If evm_init_xattrs() != 0 Then
306  error = -EFAULT
307  Go to out
310  Return 0
311  out :
312  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
313  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
314  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
315  Return error
Caller
NameDescribe
init_evm