Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Garbage collect restriction pointers from a keyring

Proto:void keyring_restriction_gc(struct key *keyring, struct key_type *dead_type)

Type:void

Parameter:

TypeParameterName
struct key *keyring
struct key_type *dead_type
1763  kenter("%x{%s}", key serial number , description ? : "")
1772  If Not dead_type || Not 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( || keytype != dead_type Then
1774  kleave(" [no restriction gc]")
1775  Return
1779  lock for writing
1781  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(
1783  check = strict_link_reject - Give -EPERM to restrict link*@keyring: The keyring being added to.*@type: The type of key being added.*@payload: The payload of the key intended to be added.*@restriction_key: Keys providing additional data for evaluating restriction.
1785  key_put - Discard a reference to a key.*@key: The key to discard a reference from.* Discard a reference to a key, and when all the references are gone, we* schedule the cleanup task to come and pull it out of the tree in process
1786  key = NULL
1787  keytype = NULL
1789  lease a write lock
1791  kleave(" [restriction gc]")