]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:31:41 +0000 (09:31 -0700)
commitf7d98b8fd06509ab1fca22923b4bbf11e7567955
treee407231922556e824f5b77786d606f1adf861e87
parente6983f149c2f68f1e6344761d5f96a3f65a325f0
eCryptfs: Filename encryption only supports password auth tokens

commit df6ad33ba1b9846bd5f0e2b9016c30c20bc2d948 upstream.

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
Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ecryptfs/crypto.c
fs/ecryptfs/keystore.c