函数逻辑报告 | 
Source Code:fs\exec.c | 
Create Date:2022-07-29 10:33:51 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:Prepare credentials and lock ->cred_guard_mutex.* install_exec_creds() commits the new creds and drops the lock.* Or, if exec fails before, free_bprm() should release ->cred and* and unlock.
函数原型:static int prepare_bprm_creds(struct linux_binprm *bprm)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct linux_binprm * | bprm | 
| 1408 | 如果mutex_lock_interruptible( & cred_guard_mutex)则返回:负ERESTARTNOINTR | 
| 1411 | cred等于Prepare credentials for current to perform an execve()* - The caller must hold ->cred_guard_mutex | 
| 1412 | 如果此条件成立可能性大(为编译器优化)(cred)则返回:0 | 
| 1416 | 返回:负ENOMEM | 
| 名称 | 描述 | 
|---|---|
| __do_execve_file | sys_execve() executes a new program. | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |