eCryptfs: check for eCryptfs cipher support at mount
authorTim Sally <tsally@atomicpeace.com>
Thu, 12 Jul 2012 23:10:24 +0000 (19:10 -0400)
committerTyler Hicks <tyhicks@canonical.com>
Sat, 14 Jul 2012 00:20:34 +0000 (17:20 -0700)
commit5f5b331d5c21228a6519dcb793fc1629646c51a6
tree8bbb3460ec1929a808acb0a707f16f5c1d0d435b
parent821f7494a77627fb1ab539591c57b22cdca702d6
eCryptfs: check for eCryptfs cipher support at mount

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>
fs/ecryptfs/main.c