tpm: fix: set continueSession attribute for the unseal operation
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 13 Feb 2016 09:51:23 +0000 (11:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 May 2016 21:49:15 +0000 (14:49 -0700)
commit220167e67dbf387f949ef6bb370c71867f64e29d
tree0e4d5fa0f223f31ce1c304f32bb75d02a7952b9f
parent5504693f5dcfae316d10706f6367f8724d69c67f
tpm: fix: set continueSession attribute for the unseal operation

commit c0b5eed110dcf520aadafefbcc40658cbdd18b95 upstream.

It's better to set the continueSession attribute for the unseal
operation so that the session object is not removed as a side-effect
when the operation is successful. Since a user process created the
session, it should be also decide when the session is destroyed.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fixes: 5beb0c435b ("keys, trusted: seal with a TPM2 authorization policy")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/tpm/tpm2-cmd.c