Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend swtpm_setup with options to pass file descriptors for keys and password files #146

Merged
merged 5 commits into from
Jun 29, 2019

Conversation

stefanberger
Copy link
Owner

Extend swtpm_setup with options to pass file descriptors for keys and password files

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Also extend swtpm_setup to allow passing the file descriptor for
the key or password files or pipes.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
…scriptors

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Make sure that when keyfile/keyfile-fd or pwdfile/pwdfile-fd are passed
to swtpm_setup that the resulting state is actually encrypted. We check
for encrypted state by making sure that 4-byte sequences of 0-bytes are
not there while they are there for un-encrypted state.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@coveralls
Copy link

coveralls commented Jun 28, 2019

Pull Request Test Coverage Report for Build 1350

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 72.002%

Totals Coverage Status
Change from base Build 1323: 0.0%
Covered Lines: 3428
Relevant Lines: 4761

💛 - Coveralls

@stefanberger stefanberger merged commit 19f9053 into master Jun 29, 2019
@stefanberger stefanberger deleted the swtpm_setup_fds branch June 29, 2019 01:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants