函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Garbage collect restriction pointers from a keyring

函数原型:void keyring_restriction_gc(struct key *keyring, struct key_type *dead_type)

返回类型:void

参数:

类型参数名称
struct key *keyring
struct key_type *dead_type
1763  kenter("%x{%s}", key serial number , description ? : "")
1772  如果非dead_type或非 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
1774  kleave(" [no restriction gc]")
1775  返回
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]")