函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create the persistent keyring for the specified user.* Called with the namespace's sem locked for writing.

函数原型:static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid, struct keyring_index_key *index_key)

返回类型:key_ref_t

参数:

类型参数名称
struct user_namespace *ns
kuid_tuid
struct keyring_index_key *index_key
46  如果非 Register of per-UID persistent keyrings for this namespace
47  err等于Create the persistent keyring register for the current user namespace.* Called with the namespace's sem locked for writing.
48  如果err小于0则返回:错误号
50  否则
51  reg_ref等于make_key_ref( Register of per-UID persistent keyrings for this namespace , true)
52  persistent_ref等于Search the given keyring for a key that might be updated.* The caller must guarantee that the keyring is a keyring and that the* permission is granted to modify the keyring as no check is made here. The
53  如果persistent_ref则返回:persistent_ref
57  persistent等于Allocate a keyring and link into the destination keyring.
63  如果是错误则返回:错误指示
66  返回:make_key_ref(persistent, true)
调用者
名称描述
key_get_persistentGet the persistent keyring for a specific UID and link it to the nominated* keyring.