OSDN Git Service

ext4 crypto: revalidate dentry after adding or removing the key
authorTheodore Ts'o <tytso@mit.edu>
Sun, 28 Aug 2016 16:42:36 +0000 (19:42 +0300)
committerGerrit - the friendly Code Review server <code-review@localhost>
Wed, 7 Sep 2016 08:18:38 +0000 (01:18 -0700)
commit1a96d6dcbf5a10d299d92558e6817dc8f5c21bb4
tree950eadb3b643973537006b8170c470e14eade0f0
parent11d6060fffff4b7e87d1cadb5f65dfc7f74332cc
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>
Signed-off-by: Theodore Ts'o <tytso@google.com>
Git-commit: b4fd46149cbb118c6c2fa29f24391e79b87862b7
Git-repo: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Change-Id: I64ea95854de3c633b17bea0b63ab658e1524befb
Signed-off-by: Andrey Markovytch <andreym@codeaurora.org>
fs/ext4/crypto.c
fs/ext4/dir.c
fs/ext4/ext4.h
fs/ext4/namei.c