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

cryptenroll: disable loading public key if --tpm2-public-key= is empty #32500

Conversation

sam-leonard-ct
Copy link
Contributor

@sam-leonard-ct sam-leonard-ct commented Apr 26, 2024

In testsuite-70.pcrlock.sh systemd-cryptenroll with --tpm2-public-key= is used to disable loading a public key.
However this doesn't work because parse_path_argument transforms an empty argument to NULL.

This PR disables loading of the public key whenever the argument is empty, by adding a flag to determine whether enroll_tpm2 should load the public key or not.

@github-actions github-actions bot added tpm2 please-review PR is ready for (re-)review by a maintainer labels Apr 26, 2024
Copy link

Important

An -rc1 tag has been created and a release is being prepared, so please note that PRs introducing new features and APIs will be held back until the new version has been released.

@bluca bluca added this to the v256 milestone Apr 30, 2024
@poettering
Copy link
Member

lgtm

@poettering poettering added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed please-review PR is ready for (re-)review by a maintainer labels May 2, 2024
@bluca bluca merged commit 03e3b26 into systemd:main May 2, 2024
40 of 49 checks passed
@sam-leonard-ct sam-leonard-ct deleted the cryptenroll/disable-public-key-loading-on-empty-arg branch May 2, 2024 14:34
@github-actions github-actions bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants