| Function report | 
| Source Code: fs\exec.c | Create Date:2022-07-28 20:04:02 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:determine how safe it is to execute the proposed program* - the caller must hold ->cred_guard_mutex to protect against* PTRACE_ATTACH or seccomp thread-sync
Proto:static void check_unsafe_exec(struct linux_binprm *bprm)
Type:void
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct linux_binprm * | bprm | 
| 1483 | p = current process | 
| 1486 | If ptrace Then unsafe |= LSM_UNSAFE_PTRACE | 
| 1493 | If task_no_new_privs(current process) Then unsafe |= LSM_UNSAFE_NO_NEW_PRIVS | 
| 1497 | n_fs = 1 | 
| 1506 | If users > n_fs Then unsafe |= prm->unsafe reasons | 
| 1508 | Else in_exec = 1 | 
| 1510 | spin_unlock( & lock) | 
| Name | Describe | 
|---|---|
| __do_execve_file | sys_execve() executes a new program. | 
| 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 |