Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check for restriction cycles that would prevent keyring garbage collection.* keyring_serialise_restrict_sem must be held.

Proto:static bool keyring_detect_restriction_cycle(const struct key *dest_keyring, struct key_restriction *keyres)

Type:bool

Parameter:

TypeParameterName
const struct key *dest_keyring
struct key_restriction *keyres
1004  When keyres && key && type of key == key_type_keyring cycle
1006  If key == dest_keyring Then Return 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  Return false
Caller
NameDescribe
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