KEYS: user_update should use copy of payload made during preparsing
authorDavid Howells <dhowells@redhat.com>
Tue, 12 Apr 2016 18:54:58 +0000 (19:54 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 12 Apr 2016 18:54:58 +0000 (19:54 +0100)
commit898de7d0f298e53568891f0ec3547b14fe8bb5d5
tree90fb64dc5d8158417b7de658d8b0016d54264056
parent93da17b18539cb021f1075f8620ee8f6da9b42aa
KEYS: user_update should use copy of payload made during preparsing

The payload preparsing routine for user keys makes a copy of the payload
provided by the caller and stashes it in the key_preparsed_payload struct for
->instantiate() or ->update() to use.  However, ->update() takes another copy
of this to attach to the keyring.  ->update() should be using this directly
and clearing the pointer in the preparse data.

Signed-off-by: David Howells <dhowells@redhat.com>
security/keys/user_defined.c