Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Check addition of keys to restricted keyrings.

Proto:static int __key_link_check_restriction(struct key *keyring, struct key *key)

Type:int

Parameter:

TypeParameterName
struct key *keyring
struct key *key
1409  If 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( || Not check Then Return 0
1411  Return check(keyring, type of key , & payload, key)
Caller
NameDescribe
key_linkkey_link - Link a key to a keyring*@keyring: The keyring to make the link in
key_movekey_move - Move a key from one keyring to another*@key: The key to move*@from_keyring: The keyring to remove the link from