Function report |
Source Code:fs\crypto\keyring.c |
Create Date:2022-07-28 20:23:53 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:add_master_key
Proto:static int add_master_key(struct super_block *sb, struct fscrypt_master_key_secret *secret, const struct fscrypt_key_specifier *mk_spec)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct super_block * | sb | |
| struct fscrypt_master_key_secret * | secret | |
| const struct fscrypt_key_specifier * | mk_spec |
| 435 | mutex_lock( & fscrypt_add_key_mutex) |
| 436 | retry : |
| 440 | If err != -ENOKEY Then Go to out_unlock |
| 444 | If err Then Go to out_unlock |
| 447 | Else |
| 452 | lock for writing |
| 453 | err = add_existing_master_key(data[0], secret) |
| 463 | out_unlock : |
| 465 | Return err |
| Name | Describe |
|---|---|
| fscrypt_ioctl_add_key | Add a master encryption key to the filesystem, causing all files which were* encrypted with it to appear "unlocked" (decrypted) when accessed.* When adding a key for use by v1 encryption policies, this ioctl is |
| 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 |