linux/fs/ecryptfs/kthread.c
Jeff Mahoney e6e8b5344c Revert "ecryptfs: forbid opening files without mmap handler"
[ Upstream commit 78c4e17241 ]

This reverts commit 2f36db7100.

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>
Cc: stable@vger.kernel.org
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
2016-07-20 11:35:52 -04:00

172 lines
4.9 KiB