函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check for restriction cycles that would prevent keyring garbage collection.* keyring_serialise_restrict_sem must be held.

函数原型:static bool keyring_detect_restriction_cycle(const struct key *dest_keyring, struct key_restriction *keyres)

返回类型:bool

参数:

类型参数名称
const struct key *dest_keyring
struct key_restriction *keyres
1004 keyreskey type of key 恒等于key_type_keyring循环
1006  如果key恒等于dest_keyring则返回:true
1009  keyres等于 This is set on a keyring to restrict the addition of a link to a key * to it. If this structure isn't provided then it is assumed that the * keyring is open to any addition. It is ignored for non-keyring * keys. Only set this value using keyring_restrict(
1012  返回:false
调用者
名称描述
keyring_restrictkeyring_restrict - Look up and apply a restriction to a keyring*@keyring_ref: The keyring to be restricted*@type: The key type that will provide the restriction checker.*@restriction: The restriction options to apply to the keyring