]> git.baikalelectronics.ru Git - kernel.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)
committerTyler Hicks <tyhicks@canonical.com>
Sat, 14 Jul 2012 00:20:34 +0000 (17:20 -0700)
commit6081dda9469c93bd49ac51faa30b0dc3343128ac
tree8bbb3460ec1929a808acb0a707f16f5c1d0d435b
parent5033a66900308508b2b3c0e4753b5ee8810e4861
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