confidential-containers / guest-components

Confidential Containers Guest Tools and Components
Apache License 2.0
81 stars 89 forks source link

AA: avoid creating AAEL if it is disabled #678

Closed Xynnn007 closed 1 month ago

Xynnn007 commented 1 month ago

Before this commit, if we disabled eventlog recording in AA's config, there will still be a file /run/attestation-agent/eventlog but with no contents.

This file would be collected by tdx attester, treated as a valid AAEL. But on CoCo-AS side the AAEL parser will fail because nothing is in it.

This commit will avoid creating this file once we disabled in AA's config.

cc @ChengyuZhu6