| Function report | 
| Source Code: security\keys\keyring.c | Create Date:2022-07-28 18:18:38 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:key_move - Move a key from one keyring to another*@key: The key to move*@from_keyring: The keyring to remove the link from
Proto:int key_move(struct key *key, struct key *from_keyring, struct key *to_keyring, unsigned int flags)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct key * | key | |
| struct key * | from_keyring | |
| struct key * | to_keyring | |
| unsigned int | flags | 
| 1594 | struct assoc_array_edit * from_edit = NULL, * to_edit = NULL | 
| 1597 | kenter("%d,%d,%d", key serial number , key serial number , key serial number ) | 
| 1599 | If from_keyring == to_keyring Then Return 0 | 
| 1603 | key_check(from_keyring) | 
| 1604 | key_check(to_keyring) | 
| 1617 | If dead_leaf && flags & Do not displace from the to-keyring Then Go to error | 
| 1629 | error : | 
| 1630 | Finish linking a key into to a keyring.* Must be called with __key_link_begin() having being called. | 
| 1632 | out : | 
| 1634 | Return ret | 
| Name | Describe | 
|---|---|
| keyctl_keyring_move | Move a link to a key from one keyring to another, displacing any matching* key from the destination keyring.* The key must grant the caller Link permission and both keyrings must grant* the caller Write permission | 
| Source code conversion tool public plug-in interface | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |