From: Eric Biggers <ebiggers@xxxxxxxxxx> This patchset fixes fscrypt_has_permitted_context() to correctly handle cases where one or both encryption keys are missing, then updates the ->lookup() methods for ext4, f2fs, and ubifs to be consistent in how they handle the encryption context consistency check. Eric Biggers (4): fscrypt: fix context consistency check when key(s) unavailable ext4: remove "nokey" check from ext4_lookup() f2fs: sync f2fs_lookup() with ext4_lookup() ubifs: check for consistent encryption contexts in ubifs_lookup() fs/crypto/policy.c | 87 ++++++++++++++++++++++++++++++++++++++++++------------ fs/ext4/namei.c | 9 +----- fs/f2fs/namei.c | 7 +++-- fs/ubifs/dir.c | 11 +++++++ 4 files changed, 84 insertions(+), 30 deletions(-) -- 2.12.2.715.g7642488e1d-goog -- To unsubscribe from this list: send the line "unsubscribe linux-fscrypt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
![]() |