eCryptfs: Filename encryption only supports password auth tokens
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Fri, 21 Aug 2009 09:27:46 +0000 (04:27 -0500)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Wed, 23 Sep 2009 14:10:32 +0000 (09:10 -0500)
commitdf6ad33ba1b9846bd5f0e2b9016c30c20bc2d948
tree5bed7a289830867f2bac4dc05f076b7121e41ae3
parentac22ba23b659e34a5961aec8c945608e471b0d5b
eCryptfs: Filename encryption only supports password auth tokens

Returns -ENOTSUPP when attempting to use filename encryption with
something other than a password authentication token, such as a private
token from openssl.  Using filename encryption with a userspace eCryptfs
key module is a future goal.  Until then, this patch handles the
situation a little better than simply using a BUG_ON().

Acked-by: Serge Hallyn <serue@us.ibm.com>
Cc: ecryptfs-devel@lists.launchpad.net
Cc: stable <stable@kernel.org>
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
fs/ecryptfs/crypto.c
fs/ecryptfs/keystore.c