Skip to content
  • Roberto Sassu's avatar
    ecryptfs: release keys loaded in ecryptfs_keyring_auth_tok_for_sig() · aee683b9
    Roberto Sassu authored
    
    
    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: default avatarRoberto 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: default avatarTyler Hicks <tyhicks@linux.vnet.ibm.com>
    aee683b9