]> git.karo-electronics.de Git - karo-tx-linux.git/commit
eCryptfs: check for eCryptfs cipher support at mount
authorTim Sally <tsally@atomicpeace.com>
Thu, 12 Jul 2012 23:10:24 +0000 (19:10 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 19:37:49 +0000 (11:37 -0800)
commit122fd46fccafa6d839118815141179f1a90cfb48
tree188610cff9f9ee372f751d1c6cd8138096ea0fcf
parentc8a1ae7c0030e936470a4701a46f775a2bc7012b
eCryptfs: check for eCryptfs cipher support at mount

commit 5f5b331d5c21228a6519dcb793fc1629646c51a6 upstream.

The issue occurs when eCryptfs is mounted with a cipher supported by
the crypto subsystem but not by eCryptfs. The mount succeeds and an
error does not occur until a write. This change checks for eCryptfs
cipher support at mount time.

Resolves Launchpad issue #338914, reported by Tyler Hicks in 03/2009.
https://bugs.launchpad.net/ecryptfs/+bug/338914

Signed-off-by: Tim Sally <tsally@atomicpeace.com>
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Cc: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ecryptfs/main.c