Function report | 
Source Code:security\tomoyo\common.c | 
Create Date:2022-07-28 19:37:35 | 
| Last Modify:2020-03-18 09:15:18 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:moyo_load_builtin_policy - Load built-in policy.* Returns nothing.
Proto:void __init tomoyo_load_builtin_policy(void)
Type:void
Parameter:Nothing
| 2832 | idx = moyo_read_lock - Take lock for protecting policy.* Returns index number for tomoyo_read_unlock(). | 
| 2835 | struct tomoyo_io_buffer head = {} | 
| 2836 | start = "" | 
| 2839 | Case i == 0 | 
| 2840 | start = tomoyo_builtin_profile | 
| 2842 | write = moyo_write_profile - Write profile table.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise. | 
| 2843 | Break | 
| 2844 | Case i == 1 | 
| 2847 | write = moyo_write_exception - Write exception policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). | 
| 2848 | Break | 
| 2849 | Case i == 2 | 
| 2852 | write = moyo_write_domain - Write domain policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). | 
| 2853 | Break | 
| 2854 | Case i == 3 | 
| 2855 | start = tomoyo_builtin_manager | 
| 2857 | write = moyo_write_manager - Write manager policy.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). | 
| 2858 | Break | 
| 2859 | Case i == 4 | 
| 2860 | start = tomoyo_builtin_stat | 
| 2862 | write = moyo_write_stat - Set memory quota.*@head: Pointer to "struct tomoyo_io_buffer".* Returns 0. | 
| 2863 | Break | 
| 2865 | When 1 cycle | 
| 2866 | end = strchr - Find the first occurrence of the character c in the string s.*@s: the string to be searched*@c: the character to search for | 
| 2868 | If Not end Then Break | 
| 2870 | end = '\0' | 
| 2871 | tomoyo_normalize_line(start) | 
| 2872 | Buffer for writing. = start | 
| Name | Describe | 
|---|---|
| tomoyo_initerface_init | moyo_initerface_init - Initialize /sys/kernel/security/tomoyo/ interface.* Returns 0. | 
| 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  |