Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\crypto\keysetup.c Create Date:2022-07-28 20:24:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:scrypt_drop_inode - check whether the inode's master key has been removed* Filesystems supporting fscrypt must call this from their ->drop_inode()* method so that encrypted inodes are evicted as soon as they're no longer in

Proto:int fscrypt_drop_inode(struct inode *inode)

Type:int

Parameter:

TypeParameterName
struct inode *inode
504  ci = READ_ONCE(i_crypt_info)
513  If Not ci || Not The master key with which this inode was unlocked (decrypted). This* will be NULL if the master key was found in a process-subscribed* keyring rather than in the filesystem-level keyring. Then Return 0
515  mk = data[0]
525  Return Not is_master_key_secret_present( & The secret key material. After FS_IOC_REMOVE_ENCRYPTION_KEY is* executed, this is wiped and no new inodes can be unlocked with this* key; however, there may still be inodes in ->mk_decrypted_inodes* which could not be evicted)