Skip to content

Commit 0fc24a6

Browse files
committed
fscrypt: update comment for do_remove_key()
Adjust a comment that was missed during commit 15baf55 ("fscrypt: track master key presence separately from secret"). Link: https://lore.kernel.org/r/20231206002127.14790-1-ebiggers@kernel.org Signed-off-by: Eric Biggers <ebiggers@google.com>
1 parent 33318c0 commit 0fc24a6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

fs/crypto/keyring.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1002,9 +1002,9 @@ static int try_to_lock_encrypted_files(struct super_block *sb,
10021002
* FS_IOC_REMOVE_ENCRYPTION_KEY_ALL_USERS (all_users=true) always removes the
10031003
* key itself.
10041004
*
1005-
* To "remove the key itself", first we wipe the actual master key secret, so
1006-
* that no more inodes can be unlocked with it. Then we try to evict all cached
1007-
* inodes that had been unlocked with the key.
1005+
* To "remove the key itself", first we transition the key to the "incompletely
1006+
* removed" state, so that no more inodes can be unlocked with it. Then we try
1007+
* to evict all cached inodes that had been unlocked with the key.
10081008
*
10091009
* If all inodes were evicted, then we unlink the fscrypt_master_key from the
10101010
* keyring. Otherwise it remains in the keyring in the "incompletely removed"

0 commit comments

Comments
 (0)