OSDN Git Service

Revert "ecryptfs: forbid opening files without mmap handler"
authorJeff Mahoney <jeffm@suse.com>
Tue, 5 Jul 2016 21:32:29 +0000 (17:32 -0400)
committerGerrit - the friendly Code Review server <code-review@localhost>
Thu, 15 Dec 2016 18:30:19 +0000 (10:30 -0800)
commit3283aeeace5e8965bf8d0338b278b5a2c818d743
tree158f301f2d20809e4e8c9009a7f32fe8285f9922
parent3162449f7d245d45f007d4ea3224576ddf1bcc63
Revert "ecryptfs: forbid opening files without mmap handler"

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.

Change-Id: I78753c9cadef7b43cd277d4827a096b45697c288
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Cc: stable@vger.kernel.org
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Git-commit: 78c4e172412de5d0456dc00d2b34050aa0b683b5
Signed-off-by: Dennis Cagle <d-cagle@codeaurora.org>
fs/ecryptfs/kthread.c