函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:aa_create_aafs - create the apparmor security filesystem* dentries created here are released by aa_destroy_aafs* Returns: error on failure

函数原型:static int __init aa_create_aafs(void)

返回类型:int

参数:

2622  如果非Flag indicating whether initialization completed 则返回:0
2625  如果dentry
2626  AA_ERROR("%s: AppArmor securityfs already exists\n", __func__)
2627  返回:负EEXIST
2631  aafs_mnt等于kern_mount( & aafs_ops)
2632  如果是错误panic - halt the system*@fmt: The text string to print* Display a message, then perform cleanups.* This function never returns.
2634  s_flags与等于SB_NOUSER的反
2637  error等于ry_create_dir - recursively create a directory entry in the securityfs*@fs_dir: aa_sfs_entry (and all child entries) to build (NOT NULL)*@parent: the parent dentry in the securityfs* Use entry_remove_dir to remove entries created with this fn.
2638  如果error则转到:error
2641  dent等于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
2643  如果是错误则转到:dent_error
2645  ns_subload(root_ns)等于dent
2647  dent等于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
2649  如果是错误则转到:dent_error
2651  ns_subreplace(root_ns)等于dent
2653  dent等于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
2655  如果是错误则转到:dent_error
2657  ns_subremove(root_ns)等于dent
2659  dent等于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
2661  如果是错误则转到:dent_error
2663  ns_subrevision(root_ns)等于dent
2666  mutex_lock_nested( & lock, level)
2667  error等于Requires: @ns->lock held
2669  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
2670  如果error则转到:error
2674  dent等于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
2676  如果是错误则转到:dent_error
2679  error等于aa_mk_null_file(dentry)
2680  如果error则转到:error
2686  aa_info_message("AppArmor Filesystem Enabled")
2687  返回:0
2689  dent_error :
2690  error等于错误
2691  error :
2692  aa_destroy_aafs - cleanup and free aafs* releases dentries allocated by aa_create_aafs
2693  AA_ERROR("Error creating AppArmor securityfs\n")
2694  返回:error