diff --git a/userspace/falco/grpc_server_impl.cpp b/userspace/falco/grpc_server_impl.cpp index b298ad91..8230caf1 100644 --- a/userspace/falco/grpc_server_impl.cpp +++ b/userspace/falco/grpc_server_impl.cpp @@ -79,6 +79,10 @@ void falco::grpc::server_impl::version(const context& ctx, const version::reques res.set_engine_version(FALCO_ENGINE_VERSION); res.set_engine_fields_checksum(FALCO_ENGINE_CHECKSUM); + auto engine_version = sinsp_version(FALCO_ENGINE_VERSION); + res.set_engine_major(engine_version.m_version_major); + res.set_engine_minor(engine_version.m_version_minor); + res.set_engine_patch(engine_version.m_version_patch); res.set_major(FALCO_VERSION_MAJOR); res.set_minor(FALCO_VERSION_MINOR); diff --git a/userspace/falco/version.proto b/userspace/falco/version.proto index 2fb9e43a..98c10f6d 100644 --- a/userspace/falco/version.proto +++ b/userspace/falco/version.proto @@ -45,6 +45,9 @@ message response string prerelease = 5; string build = 6; // falco engine version - uint32 engine_version = 7; + uint32 engine_minor = 7; string engine_fields_checksum = 8; + uint32 engine_major = 9; + uint32 engine_patch = 10; + string engine_version = 11; } diff --git a/userspace/falco/versions_info.cpp b/userspace/falco/versions_info.cpp index 7c2ead10..c7ddb4e0 100644 --- a/userspace/falco/versions_info.cpp +++ b/userspace/falco/versions_info.cpp @@ -51,7 +51,7 @@ static inline std::string get_driver_schema_version(const std::shared_ptr falco::versions_info::versions_info(const std::shared_ptr& inspector) { falco_version = FALCO_VERSION; - engine_version = std::to_string(FALCO_ENGINE_VERSION); + engine_version = FALCO_ENGINE_VERSION; libs_version = FALCOSECURITY_LIBS_VERSION; plugin_api_version = inspector->get_plugin_api_version(); driver_api_version = get_driver_api_version(inspector);