Revert "ecryptfs: forbid opening files without mmap handler"
authorJeff Mahoney <jeffm@suse.com>
Tue, 5 Jul 2016 21:32:29 +0000 (17:32 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Aug 2016 09:49:27 +0000 (11:49 +0200)
commitae159a027893a8bdeaab0c5f863ca6e57b4468d3
treeff6ca6a75cf75ecb9270f857f08e60476761f150
parenta3bdfa7b6185c677921df51cd2e44ab8aa656a2d
Revert "ecryptfs: forbid opening files without mmap handler"

commit 78c4e172412de5d0456dc00d2b34050aa0b683b5 upstream.

This reverts commit 2f36db71009304b3f0b95afacd8eba1f9f046b87.

It fixed a local root exploit but also introduced a dependency on
the lower file system implementing an mmap operation just to open a file,
which is a bit of a heavy hammer.  The right fix is to have mmap depend
on the existence of the mmap handler instead.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ecryptfs/kthread.c