eCryptfs: check for eCryptfs cipher support at mount
authorTim Sally <tsally@atomicpeace.com>
Thu, 12 Jul 2012 23:10:24 +0000 (19:10 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 16 Nov 2012 16:47:19 +0000 (16:47 +0000)
commit50a2114dde86ea598918716f1b44fdc88f3692d8
treebb556d71d2fc4921989a59d2665d2a27eee75741
parent916fef09cb43ee4aad40129b3f9e3fd4bb1c641f
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/ecryptfs/main.c