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)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 20 Feb 2016 07:58:21 +0000 (09:58 +0200)
commitc0b5eed110dcf520aadafefbcc40658cbdd18b95
tree8015494d553b98e52d3ceacaae21b50de5e813a8
parent8e0ee3c9faed7ca68807ea45141775856c438ac0
tpm: fix: set continueSession attribute for the unseal operation

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")
drivers/char/tpm/tpm2-cmd.c