agent: Show features enabled at build time

The agent now has a number of optional build-time features that can be
enabled.

Add details of these features to the following areas:

- Version output (`kata-agent --version`)
- Announce message (so that the details are always added to the journal
  at agent startup).
- The response message returned by the ttRPC `GetGuestDetails()` API.

Fixes: #9285.

Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
James O. D. Hunt
2024-03-13 16:17:07 +00:00
parent ac27caf1b4
commit 9ef59488d9
8 changed files with 38 additions and 1 deletions

View File

@@ -417,6 +417,9 @@ message AgentDetails {
// Set only if the agent is built with seccomp support and the guest
// environment supports seccomp.
bool supports_seccomp = 5;
// List of additional features enabled at agent build time.
repeated string extra_features = 6;
}
message GuestDetailsRequest {