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

AA: fix launch configuration #599

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

Xynnn007
Copy link
Member

Before this commit, if no configuration and proper aa_kbc_param given to AA, the launch of AA will panic.

This commit will use a default value for aa_kbc_param for AA/CDH. If no env or kernel cmdline, default value offline_fs_kbc and null will be used. If a aa_kbc_param is specified, it will be parsed as kbc:url. If the aa_kbc_param is malwared, the launch process will still fail.

cc @mkulke

Copy link
Contributor

@mkulke mkulke left a comment

Choose a reason for hiding this comment

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

small nit

@@ -73,13 +73,15 @@ pub struct AttestationAgent {
}

impl Default for AttestationAgent {
/// This function would panic if a malwared `aa_kbc_param` is given
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
/// This function would panic if a malwared `aa_kbc_param` is given
/// This function would panic if a malformed `aa_kbc_param` is given

Before this commit, if no configuration and proper aa_kbc_param given
to AA, the launch of AA will panic.

This commit will use a default value for aa_kbc_param for AA/CDH. If no
env or kernel cmdline, default value offline_fs_kbc and null will be
used. If a aa_kbc_param is specified, it will be parsed as kbc:url. If
the aa_kbc_param is malwared, the launch process will still fail.

Signed-off-by: Xynnn007 <[email protected]>
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.

2 participants