Function report |
Source Code:security\tomoyo\domain.c |
Create Date:2022-07-28 19:40:17 |
Last Modify:2022-05-23 20:14:46 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_environ - Check permission for environment variable names.*@ee: Pointer to "struct tomoyo_execve".* Returns 0 on success, negative value otherwise.
Proto:static int tomoyo_environ(struct tomoyo_execve *ee)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_execve * | ee |
620 | struct tomoyo_page_dump env_page = {} |
622 | arg_len = 0 |
623 | pos = current top of mem |
625 | argv_count = argc |
626 | envp_count = envc |
629 | type = TOMOYO_MAC_ENVIRON |
631 | One of tomoyo_mode_index . = moyo_get_mode - Get MAC mode.*@ns: Pointer to "struct tomoyo_policy_namespace".*@profile: Profile number.*@index: Index number of functionality.* Returns mode. |
633 | If Not One of tomoyo_mode_index . || Not envp_count Then Return 0 |
635 | arg_ptr = kzalloc - allocate memory. The memory is set to zero.*@size: how many bytes of memory are required.*@flags: the type of memory to allocate (see kmalloc). |
643 | When argv_count && offset < PAGE_SIZE cycle |
644 | If Not Contents of "page". Size is PAGE_SIZE. [offset++] Then argv_count-- |
647 | If argv_count Then |
648 | offset = 0 |
649 | Continue |
652 | c = Contents of "page". Size is PAGE_SIZE. [offset++] |
654 | If c && arg_len < TOMOYO_EXEC_TMPSIZE - 10 Then |
669 | Else |
672 | If c Then Continue |
678 | If Not --envp_count Then |
679 | error = 0 |
680 | Break |
682 | arg_len = 0 |
684 | offset = 0 |
686 | out : |
687 | If One of tomoyo_mode_index . != TOMOYO_CONFIG_ENFORCING Then error = 0 |
691 | Return error |
Name | Describe |
---|---|
tomoyo_find_next_domain | moyo_find_next_domain - Find a domain.*@bprm: Pointer to "struct linux_binprm".* Returns 0 on success, negative value otherwise.* Caller holds tomoyo_read_lock(). |
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 |