Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\cred.c Create Date:2022-07-28 09:32:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Clean up a task's credentials when it exits

Proto:void exit_creds(struct task_struct *tsk)

Type:void

Parameter:

TypeParameterName
struct task_struct *tsk
161  kdebug("exit_creds(%u,%p,%p,{%d,%d})", process id, Objective and real subjective task credentials (COW): , Effective (overridable) subjective task credentials (COW): , atomic_read( & usage), read_cred_subscribers( Effective (overridable) subjective task credentials (COW): ))
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 = Effective (overridable) subjective task credentials (COW):
172  Effective (overridable) subjective task credentials (COW): = 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
Caller
NameDescribe
copy_processCreate a new process