函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\process_keys.c Create Date:2022-07-27 19:57:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Replace a process's session keyring on behalf of one of its children when* the target process is about to resume userspace execution.

函数原型:void key_change_session_keyring(struct callback_head *twork)

返回类型:void

参数:

类型参数名称
struct callback_head *twork
914  old等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
915  new等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(twork, structcred, rcu)
917  如果此条件成立可能性小(为编译器优化)(flags & Getting shut down )则
918  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
919  返回
922  进程uid等于进程uid
923  有效uid等于有效uid
924  保留uid等于保留uid
925  UID for VFS ops 等于 UID for VFS ops
926  进程gid等于进程gid
927  有效gid等于有效gid
928  保留gid等于保留gid
929  GID for VFS ops 等于 GID for VFS ops
930  真实用户身份等于get_uid(真实用户身份)
931  user_ns the caps and keyrings are relative to. 等于get_user_ns( user_ns the caps and keyrings are relative to. )
932  组补充信息等于get_group_info - Get a reference to a group info structure*@group_info: The group info to reference* This gets a reference to a set of supplementary groups.* If the caller is accessing a task's credentials, they must hold the RCU read* lock when reading.
934  安全管理等于安全管理
935  caps our children can inherit 等于 caps our children can inherit
936  caps we're permitted 等于 caps we're permitted
937  caps we can actually use 等于 caps we can actually use
938  Ambient capability set 等于 Ambient capability set
939  capability bounding set 等于 capability bounding set
941  default keyring to attach requested * keys to 等于 default keyring to attach requested * keys to
942  keyring private to this thread 等于key_get( keyring private to this thread )
943  keyring private to this process 等于key_get( keyring private to this process )
945  security_transfer_creds(new, old)
947  mmit_creds - Install new credentials upon the current task*@new: The credentials to be assigned* Install a new set of credentials to the current task, using RCU to replace* the old set. Both the objective and the subjective credentials pointers are