| Function report | 
| Source Code: security\tomoyo\common.c | Create Date:2022-07-28 19:35: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_read_pid - Get domainname of the specified PID
Proto:static void tomoyo_read_pid(struct tomoyo_io_buffer *head)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct tomoyo_io_buffer * | head | 
| 1698 | buf = Buffer for writing. | 
| 1699 | bool global_pid = false | 
| 1702 | struct tomoyo_domain_info * domain = NULL | 
| 1705 | If Not buf Then | 
| 1706 | eof = true | 
| 1707 | Return | 
| 1711 | eof = true | 
| 1712 | If tomoyo_str_starts( & buf, "global-pid ") Then global_pid = true | 
| 1717 | If global_pid Then p = Must be called under rcu_read_lock(). | 
| 1719 | Else p = find_task_by_vpid(pid) | 
| 1721 | If p Then domain = domain_info | 
| 1724 | If Not domain Then Return | 
| 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 |