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

Handle secureboot on&off for ima_evm tests #13673

Merged
merged 1 commit into from Nov 16, 2021

Conversation

rfan1
Copy link
Contributor

@rfan1 rfan1 commented Nov 12, 2021

Based on bsc#1189988, we need disable secureboot
if we set kernel parameter "ima_appraise=fix", but
we should make sure other tests can still run in
enabled state, so enhance the test logic.

@rfan1 rfan1 changed the title WIP: Handle secureboot on&off for ima_evm tests Handle secureboot on&off for ima_evm tests Nov 15, 2021
tests/security/ima/evm_protection_hmacs.pm Outdated Show resolved Hide resolved
tests/security/ima/evm_setup.pm Outdated Show resolved Hide resolved
tests/security/ima/ima_appraisal_digital_signatures.pm Outdated Show resolved Hide resolved
tests/security/ima/ima_appraisal_hashes.pm Outdated Show resolved Hide resolved
tests/security/ima/evm_setup.pm Outdated Show resolved Hide resolved
tests/security/ima/ima_appraisal_hashes.pm Outdated Show resolved Hide resolved
@rfan1 rfan1 force-pushed the ima_evm_secureboot_enable branch 2 times, most recently from faa7096 to 8863259 Compare November 15, 2021 08:33
Copy link
Contributor

@lilyeyes lilyeyes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only minor coding style comments.
Others are LGTM.

tests/security/ima/evm_setup.pm Outdated Show resolved Hide resolved
tests/security/ima/ima_appraisal_hashes.pm Outdated Show resolved Hide resolved
@jouyingbin
Copy link
Contributor

Looks like there is CI check fail?

@rfan1
Copy link
Contributor Author

rfan1 commented Nov 15, 2021

Looks like there is CI check fail?

Fixed

Copy link
Contributor

@Amrysliu Amrysliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Based on bsc#1189988, we need disable secureboot
if we set kernel parameter "ima_appraise=fix", but
we should make sure other tests can still run in
enabled state, so enhance the test logic.
Copy link
Contributor

@jouyingbin jouyingbin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the update.

@Amrysliu Amrysliu merged commit 8414db0 into os-autoinst:master Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants