From: Tyler Hicks Date: Wed, 12 Aug 2009 06:06:54 +0000 (-0500) Subject: eCryptfs: Check for O_RDONLY lower inodes when opening lower files X-Git-Tag: v2.6.32-rc1~47^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac22ba23b659e34a5961aec8c945608e471b0d5b;p=pandora-kernel.git 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 Cc: Eric Sandeen Cc: Dave Kleikamp Cc: ecryptfs-devel@lists.launchpad.net Cc: stable Signed-off-by: Tyler Hicks --- Reading git-diff-tree failed