]> git.baikalelectronics.ru Git - kernel.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)
commite1d95458645ce96b7f9f1ae3ff691479847dfea6
treecf169b33d19264de0af048876e0276f06430f726
parent87769ffbad1a15e849b568d4bb3ecd9e274ee8b0
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