aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-01-27Add session gapping testsHEADmasterJames Bottomley3-10/+147
2017-01-27smoke test updateJames Bottomley3-8/+50
2017-01-27add session smoke tests using tss2James Bottomley3-0/+322
2017-01-23Resource manager sessions to the tpm2.ClientJarkko Sakkinen2-1/+38
Added support for the handle spaces to the tpm2.Client. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-12-24Added --all-transient option to tpm2-flushJarkko Sakkinen1-6/+10
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-12-24Added tpm2-parse-error scriptJarkko Sakkinen2-4/+25
Added tpm2-parse-error script to parse the give error code. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-12-07keyctl-smoke.h: fix the cleanup procedureJarkko Sakkinen1-12/+24
Clean up all the transient data created in success and failure conditions. Policy session was never properly flushed and no clean up happened when a command failed. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-11-28Add interpreter line to the head of each scriptJarkko Sakkinen7-0/+14
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-11-28Updated licensing information.Jarkko Sakkinen11-269/+42
Removed MIT license from tpm2.py and added a common LICENSE file. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-10-19Fixed error code parsingJarkko Sakkinen1-4/+4
Use dictionary get() method in error code parsing in order to have a robust fallback if the error code is not found from the dictionary. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-09-05Open /dev/tpm0 only once in the life-cycle of a Client objectJarkko Sakkinen2-4/+7
Moved opening of the Client object to __init__ so that it can be used with an in-kernel resource manager sessions. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-08-27Remove sudos from keyctl-smoke.shJarkko Sakkinen1-4/+4
I tend to run kernel tests in BR initramfs environments with no sudo installed and it's not too painful to write sudo ./keyctl-smoke.sh if one wants to use sudo. Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-06-10Remove hardcoded policy handleJarkko Sakkinen1-1/+1
keyctl-smoke.sh has a hardcoded policyhandle value in the keyctl command to load the blob, instead of using $POLICYHANDLE, and thus, multiple attempts to run keyctl-smoke.sh will fail. Reported-by: Jerry Snitselaar <jsnitsel@redhat.com> Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
2016-04-17first commitJarkko Sakkinen12-0/+1466
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>