ubifs: check for consistent encryption contexts in ubifs_lookup()
authorEric Biggers <ebiggers@google.com>
Fri, 7 Apr 2017 17:58:40 +0000 (10:58 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 May 2017 15:44:35 +0000 (11:44 -0400)
commit413d5a9edbb45eec4dbb1904fe689b561ea5d143
tree1d56e8577d5c2244ae51b9bf722c1a51e44354b4
parentfaac7fd97e0827f959c9d376399b91b37364a567
ubifs: check for consistent encryption contexts in ubifs_lookup()

As ext4 and f2fs do, ubifs should check for consistent encryption
contexts during ->lookup() in an encrypted directory.  This protects
certain users of filesystem encryption against certain types of offline
attacks.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ubifs/dir.c