函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Allocate blank credentials, such that the credentials can be filled in at a* later date without risk of ENOMEM.

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

返回类型:struct cred

参数:

217  new等于Shortcuts
218  如果非new则返回:NULL
221  atomic_set( & usage, 1)
226  如果security_cred_alloc_blank(new, GFP_KERNEL_ACCOUNT)小于0则转到:error
229  返回:new
231  error :
232  abort_creds - Discard a set of credentials and unlock the current task*@new: The credentials that were going to be applied* Discard a set of credentials that were under construction and unlock the* current task.
233  返回:NULL
调用者
名称描述
keyctl_session_to_parentAttempt to install the calling process's session keyring on the process's* parent process.* The keyring must exist and must grant the caller LINK permission, and the* parent process must be single-threaded and must have the same effective