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

feat(dracut): add --sbat option to add sbat policy to UKI #74

Merged
merged 1 commit into from
Nov 14, 2023

Conversation

pvalena
Copy link
Contributor

@pvalena pvalena commented Oct 25, 2023

Take existing .sbat section from the uefi stub and merge it with vmlinux .sbat (if it exists) and user-provided .sbat parameters using the new --sbat option.

For some reasons, --update-section in objcopy does not resize the .sbat section, so remove the section from the stub and add it to the UKI as new one, to avoid having incomplete SBAT strings.

Signed-off-by: Emanuele Giuseppe Esposito eesposit@redhat.com

(Cherry-picked commit: 550a0084fd95870f35218dc2cf8ea91fde1c728a)

Resolves: RHEL-5732

Take existing .sbat section from the uefi stub and merge it
with vmlinux .sbat (if it exists) and user-provided .sbat parameters
using the new --sbat option.

For some reasons, --update-section in objcopy does not resize the
.sbat section, so remove the section from the stub and add it
to the UKI as new one, to avoid having incomplete SBAT strings.

Signed-off-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>

(Cherry-picked commit: 550a0084fd95870f35218dc2cf8ea91fde1c728a)

Resolves: RHEL-5732
@pvalena
Copy link
Contributor Author

pvalena commented Nov 14, 2023

@lnykryn PTAL.

@pvalena pvalena merged commit 28cadd4 into redhat-plumbers:main Nov 14, 2023
38 of 43 checks passed
@pvalena pvalena deleted the rhel-9-fix-5732 branch November 14, 2023 17:55
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.

3 participants