]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ext4 crypto: revalidate dentry after adding or removing the key
authorTheodore Ts'o <tytso@mit.edu>
Mon, 8 Feb 2016 00:35:05 +0000 (19:35 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Feb 2016 00:35:05 +0000 (19:35 -0500)
commit28b4c263961c47da84ed8b5be0b5116bad1133eb
treecf169b33d19264de0af048876e0276f06430f726
parent36f90b0a2ddd60823fe193a85e60ff1906c2a9b3
ext4 crypto: revalidate dentry after adding or removing the key

Add a validation check for dentries for encrypted directory to make
sure we're not caching stale data after a key has been added or removed.

Also check to make sure that status of the encryption key is updated
when readdir(2) is executed.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/crypto.c
fs/ext4/dir.c
fs/ext4/ext4.h
fs/ext4/namei.c