函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Clean up a task's credentials when it exits

函数原型:void exit_creds(struct task_struct *tsk)

返回类型:void

参数:

类型参数名称
struct task_struct *tsk
161  kdebug("exit_creds(%u,%p,%p,{%d,%d})", 进程ID, Objective and real subjective task credentials (COW): , 安全管理凭证, atomic_read( & usage), read_cred_subscribers(安全管理凭证))
165  cred等于 Objective and real subjective task credentials (COW):
166  Objective and real subjective task credentials (COW): = NULL
167  validate_creds(cred)
168  alter_cred_subscribers(cred, - 1)
169  put_cred - Release a reference to a set of credentials*@cred: The credentials to release* Release a reference to a set of credentials, deleting them when the last ref* is released
171  cred等于安全管理凭证
172  安全管理凭证 = NULL
173  validate_creds(cred)
174  alter_cred_subscribers(cred, - 1)
175  put_cred - Release a reference to a set of credentials*@cred: The credentials to release* Release a reference to a set of credentials, deleting them when the last ref* is released
调用者
名称描述
copy_process创建进程
__put_task_struct