]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: Unlock keys needed by ecryptfsd
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Wed, 27 Jul 2011 00:47:08 +0000 (19:47 -0500)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Fri, 29 Jul 2011 04:30:09 +0000 (23:30 -0500)
commitc9abc715764e044caec49f36995238e144d9b047
treebe0a56d227b5f6b661c0f8eecf960b61051d05d6
parente123fddf34fa776842982d0b49dec0aecab2695e
eCryptfs: Unlock keys needed by ecryptfsd

Fixes a regression caused by 4c7da5b4a979b2635d99fa4808c6f640445b6021

Kernel keyring keys containing eCryptfs authentication tokens should not
be write locked when calling out to ecryptfsd to wrap and unwrap file
encryption keys. The eCryptfs kernel code can not hold the key's write
lock because ecryptfsd needs to request the key after receiving such a
request from the kernel.

Without this fix, all file opens and creates will timeout and fail when
using the eCryptfs PKI infrastructure. This is not an issue when using
passphrase-based mount keys, which is the most widely deployed eCryptfs
configuration.

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Acked-by: Roberto Sassu <roberto.sassu@polito.it>
Tested-by: Roberto Sassu <roberto.sassu@polito.it>
Tested-by: Alexis Hafner1 <haf@zurich.ibm.com>
Cc: <stable@kernel.org> [2.6.39+]
fs/ecryptfs/keystore.c