Function report |
Source Code:security\apparmor\lsm.c |
Create Date:2022-07-28 19:53:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:apparmor_init
Proto:static int __init apparmor_init(void)
Type:int
Parameter:Nothing
| 1834 | aa_secids_init() |
| 1836 | error = aa_setup_dfa_engine() |
| 1837 | If error Then |
| 1842 | error = aa_alloc_root_ns() |
| 1843 | If error Then |
| 1848 | error = apparmor_init_sysctl() |
| 1849 | If error Then |
| 1855 | error = alloc_buffers() |
| 1856 | If error Then |
| 1861 | error = set_init_ctx - set a task context and profile on the first task.* TODO: allow setting an alternate profile than unconfined |
| 1862 | If error Then |
| 1863 | AA_ERROR("Failed to set context on init task\n") |
| 1865 | Go to buffers_out |
| 1872 | If AppArmor global enforcement switch - complain, enforce, kill == allow and log access violations Then aa_info_message - log a none profile related status message*@str: message to log |
| 1874 | Else if AppArmor global enforcement switch - complain, enforce, kill == kill task on access violation Then aa_info_message - log a none profile related status message*@str: message to log |
| 1879 | Return error |
| 1881 | buffers_out : |
| 1882 | destroy_buffers() |
| 1883 | alloc_out : |
| 1885 | aa_teardown_dfa_engine() |
| 1887 | Boot time disable flag = false |
| 1888 | Return error |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |