Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\exec.c Create Date:2022-07-28 20:04:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static int prepare_bprm_creds(struct linux_binprm *bprm)

Type:int

Parameter:

TypeParameterName
struct linux_binprm *bprm
1408  If mutex_lock_interruptible( & cred_guard_mutex) Then Return -ERESTARTNOINTR
1411  cred = Prepare credentials for current to perform an execve()* - The caller must hold ->cred_guard_mutex
1412  If Value is more likely to compile time(cred) Then Return 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  Return -ENOMEM
Caller
NameDescribe
__do_execve_filesys_execve() executes a new program.