eCryptfs: Gracefully refuse miscdev file ops on inherited/passed files
From: Colin Ian King <email@example.com>
File operations on /dev/ecryptfs would BUG() when the operations were
performed by processes other than the process that originally opened the
file. This could happen with open files inherited after fork() or file
descriptors passed through IPC mechanisms.
upstream cherry pick of commit 8dc6780587c99286c0d3de747a2946a76989414a
Without the fix, this test fails. With the fix, it passes.
Tyler Hicks (1):
eCryptfs: Gracefully refuse miscdev file ops on inherited/passed
fs/ecryptfs/miscdev.c | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
kernel-team mailing list
|All times are GMT. The time now is 01:18 AM.|
VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.