Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:key_unlink - Unlink the first link to a key from a keyring

Proto:int key_unlink(struct key *keyring, struct key *key)

Type:int

Parameter:

TypeParameterName
struct key *keyring
struct key *key
1546  struct assoc_array_edit * edit = NULL
1549  key_check(keyring)
1550  key_check(key)
1552  ret = Lock a keyring for unlink.
1553  If ret < 0 Then Return ret
1556  ret = Begin the process of unlinking a key from a keyring.
1557  If ret == 0 Then Apply an unlink change.
1559  Finish unlinking a key from to a keyring.
1560  Return ret
Caller
NameDescribe
keyctl_keyring_unlinkUnlink a key from a keyring.* The keyring must grant the caller Write permission for this to work; the key* itself need not grant the caller anything. If the last link to a key is* removed then that key will be scheduled for destruction.