函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-29 10:33:51
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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
1415  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
1416  返回:负ENOMEM
调用者
名称描述
__do_execve_filesys_execve() executes a new program.