Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ima_fs_init

Proto:int __init ima_fs_init(void)

Type:int

Parameter:Nothing

454  ima_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
455  If IS_ERR(ima_dir) Then Return -1
458  ima_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
460  If IS_ERR(ima_symlink) Then Go to out
463  binary_runtime_measurements = 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
467  If IS_ERR(binary_runtime_measurements) Then Go to out
470  ascii_runtime_measurements = 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
474  If IS_ERR(ascii_runtime_measurements) Then Go to out
477  runtime_measurements_count = 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
481  If IS_ERR(runtime_measurements_count) Then Go to out
484  violations = 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
487  If IS_ERR(violations) Then Go to out
490  ima_policy = 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
493  If IS_ERR(ima_policy) Then Go to out
496  Return 0
497  out :
498  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
499  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
500  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
501  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
502  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
503  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
504  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
505  Return -1
Caller
NameDescribe
ima_init