aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorGravatar Roberto Sassu <roberto.sassu@polito.it> 2010-10-06 18:31:06 +0200
committerGravatar Tyler Hicks <tyhicks@linux.vnet.ibm.com> 2010-10-29 10:31:35 -0500
commitaee683b9e77e17237b0e146025c3d363c9203634 (patch)
tree79ec9b8a2ff2d2e433bbe7a6959a34aeb75c25b6 /kernel
parenteCryptfs: Clear LOOKUP_OPEN flag when creating lower file (diff)
downloadlinux-aee683b9e77e17237b0e146025c3d363c9203634.tar.gz
linux-aee683b9e77e17237b0e146025c3d363c9203634.tar.bz2
linux-aee683b9e77e17237b0e146025c3d363c9203634.zip
ecryptfs: release keys loaded in ecryptfs_keyring_auth_tok_for_sig()
This patch allows keys requested in the function ecryptfs_keyring_auth_tok_for_sig()to be released when they are no longer required. In particular keys are directly released in the same function if the obtained authentication token is not valid. Further, a new function parameter 'auth_tok_key' has been added to ecryptfs_find_auth_tok_for_sig() in order to provide callers the key pointer to be passed to key_put(). Signed-off-by: Roberto Sassu <roberto.sassu@polito.it> Cc: Dustin Kirkland <kirkland@canonical.com> Cc: James Morris <jmorris@namei.org> [Tyler: Initialize auth_tok_key to NULL in ecryptfs_parse_packet_set] Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions