Function report |
Source Code:security\tomoyo\common.c |
Create Date:2022-07-28 19:34:59 |
Last Modify:2020-03-18 09:15:18 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:moyo_select_domain - Parse select command.*@head: Pointer to "struct tomoyo_io_buffer".*@data: String to parse.* Returns true on success, false otherwise.* Caller holds tomoyo_read_lock().
Proto:static bool tomoyo_select_domain(struct tomoyo_io_buffer *head, const char *data)
Type:bool
Parameter:
Type | Parameter | Name |
---|---|---|
struct tomoyo_io_buffer * | head | |
const char * | data |
994 | struct tomoyo_domain_info * domain = NULL |
995 | bool global_pid = false |
999 | data += 7 |
1005 | If global_pid Then p = Must be called under rcu_read_lock(). |
1007 | Else p = find_task_by_vpid(pid) |
1009 | If p Then domain = domain_info |
1016 | domain = tomoyo_find_domain_by_qid(pid) |
1017 | Else Return false |
1021 | If Not Buffer for reading. Then Return true |
1024 | print_this_domain_only = true |
1027 | Else eof = 1 |
1032 | Return true |
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 |