aboutsummaryrefslogtreecommitdiff
path: root/fs/ecryptfs/keystore.c
diff options
context:
space:
mode:
authorGravatar Tyler Hicks <tyhicks@linux.vnet.ibm.com> 2009-08-12 01:06:54 -0500
committerGravatar Tyler Hicks <tyhicks@linux.vnet.ibm.com> 2009-09-23 09:10:32 -0500
commitac22ba23b659e34a5961aec8c945608e471b0d5b (patch)
tree6629c15380fe2db238fa078e912f4cf393708161 /fs/ecryptfs/keystore.c
parenteCryptfs: Handle unrecognized tag 3 cipher codes (diff)
downloadlinux-ac22ba23b659e34a5961aec8c945608e471b0d5b.tar.gz
linux-ac22ba23b659e34a5961aec8c945608e471b0d5b.tar.bz2
linux-ac22ba23b659e34a5961aec8c945608e471b0d5b.zip
eCryptfs: Check for O_RDONLY lower inodes when opening lower files
If the lower inode is read-only, don't attempt to open the lower file read/write and don't hand off the open request to the privileged eCryptfs kthread for opening it read/write. Instead, only try an unprivileged, read-only open of the file and give up if that fails. This patch fixes an oops when eCryptfs is mounted on top of a read-only mount. Acked-by: Serge Hallyn <serue@us.ibm.com> Cc: Eric Sandeen <esandeen@redhat.com> Cc: Dave Kleikamp <shaggy@linux.vnet.ibm.com> Cc: ecryptfs-devel@lists.launchpad.net Cc: stable <stable@kernel.org> Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'fs/ecryptfs/keystore.c')
0 files changed, 0 insertions, 0 deletions