函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Prepare credentials for current to perform an execve()* - The caller must hold ->cred_guard_mutex

函数原型:struct cred *prepare_exec_creds(void)

返回类型:struct cred

参数:

304  new等于prepare_creds - Prepare a new set of credentials for modification* Prepare a new set of task credentials for modification
305  如果非new则返回:new
310  key_put( keyring private to this thread )
311  keyring private to this thread = NULL
314  key_put( keyring private to this process )
315  keyring private to this process = NULL
318  返回:new
调用者
名称描述
prepare_bprm_credsPrepare 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.