Revert "ecryptfs: forbid opening files without mmap handler"
Orabug:
25308098
[ Upstream commit
78c4e172412de5d0456dc00d2b34050aa0b683b5 ]
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>
Cc: stable@vger.kernel.org
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
(cherry picked from commit
f1e8b05914912c9a6309c450f266aa21d5667524)
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>