Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:verride_creds - Override the current process's subjective credentials*@new: The credentials to be assigned* Install a set of temporary override subjective credentials on the current* process, returning the old set for later reversion.

Proto:const struct cred *override_creds(const struct cred *new)

Type:struct cred

Parameter:

TypeParameterName
const struct cred *new
543  old = cred
545  kdebug("override_creds(%p{%d,%d})", new, atomic_read( & usage), read_cred_subscribers(new))
549  validate_creds(old)
550  validate_creds(new)
563  get_new_cred - Get a reference on a new set of credentials*@cred: The new credentials to reference* Get a reference on the specified set of new credentials. The caller must* release the reference.
564  alter_cred_subscribers(new, 1)
565  cu_assign_pointer() - assign to RCU-protected pointer*@p: pointer to assign to*@v: value to assign (publish)* Assigns the specified value to the specified RCU-protected* pointer, ensuring that any concurrent RCU readers will see* any prior initialization(cred, new)
566  alter_cred_subscribers(old, - 1)
568  kdebug("override_creds() = %p{%d,%d}", old, atomic_read( & usage), read_cred_subscribers(old))
571  Return old
Caller
NameDescribe
do_acct_process
io_sq_thread
io_worker_handle_work
do_coredump