函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:apparmor_init

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

返回类型:int

参数:

1834  aa_secids_init()
1836  error等于aa_setup_dfa_engine()
1837  如果error
1838  AA_ERROR("Unable to setup dfa engine\n")
1839  转到:alloc_out
1842  error等于aa_alloc_root_ns()
1843  如果error
1844  AA_ERROR("Unable to allocate default profile namespace\n")
1845  转到:alloc_out
1848  error等于apparmor_init_sysctl()
1849  如果error
1850  AA_ERROR("Unable to register sysctls\n")
1851  转到:alloc_out
1855  error等于alloc_buffers()
1856  如果error
1857  AA_ERROR("Unable to allocate work buffers\n")
1858  转到:alloc_out
1861  error等于set_init_ctx - set a task context and profile on the first task.* TODO: allow setting an alternate profile than unconfined
1862  如果error
1863  AA_ERROR("Failed to set context on init task\n")
1864  aa_free_root_ns - free the root profile namespace
1865  转到:buffers_out
1867  security_add_hooks - Add a modules hooks to the hook lists.*@hooks: the hooks to add*@count: the number of hooks to add*@lsm: the name of the security module* Each LSM has to register its hooks with the infrastructure.
1871  Flag indicating whether initialization completed 等于1
1872  如果AppArmor global enforcement switch - complain, enforce, kill 恒等于allow and log access violations aa_info_message - log a none profile related status message*@str: message to log
1874  否则如果AppArmor global enforcement switch - complain, enforce, kill 恒等于kill task on access violation aa_info_message - log a none profile related status message*@str: message to log
1876  否则aa_info_message - log a none profile related status message*@str: message to log
1879  返回:error
1881  buffers_out :
1882  destroy_buffers()
1883  alloc_out :
1884  aa_destroy_aafs - cleanup and free aafs* releases dentries allocated by aa_create_aafs
1885  aa_teardown_dfa_engine()
1887  Boot time disable flag = false
1888  返回:error