Function report |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-28 19:34:53 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_manager - Check whether the current process is a policy manager.* Returns true if the current process is permitted to modify policy* via /sys/kernel/security/tomoyo/ interface.* Caller holds tomoyo_read_lock().
Proto:static bool tomoyo_manager(void)
Type:bool
Parameter:Nothing
941 | task = current process |
943 | found = IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_SECURITY_TOMOYO_INSECURE_BUILTIN_SETTING) |
945 | If Not External variable definitions. ********* Then Return true |
947 | If Not Permit policy management by non-root user? && ( Not uid_eq( real UID of the task , GLOBAL_ROOT_UID) || Not uid_eq( effective UID of the task , GLOBAL_ROOT_UID) ) Then Return false |
951 | exe = tomoyo_get_exe() |
952 | If Not exe Then Return false |
959 | found = true |
960 | Break |
963 | If Not found Then |
974 | Return found |
Name | Describe |
---|---|
tomoyo_write_control | moyo_write_control - write() for /sys/kernel/security/tomoyo/ interface.*@head: Pointer to "struct tomoyo_io_buffer".*@buffer: Pointer to buffer to read from.*@buffer_len: Size of @buffer.* Returns @buffer_len on success, negative value otherwise. |
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 |