new(falco): add engine version to --version

Signed-off-by: Luca Guerra <luca@guerra.sh>
This commit is contained in:
Luca Guerra 2022-12-15 16:38:16 +00:00 committed by poiana
parent dde2fdd67c
commit 6ea233dd75
2 changed files with 3 additions and 0 deletions

View File

@ -200,6 +200,7 @@ This section provides more details around the versioning of all components that
Falco version: x.y.z (sem-ver like)
Libs version: x.y.z (sem-ver like)
Plugin API: x.y.z (sem-ver like)
Engine: x
Driver:
API version: x.y.z (sem-ver)
Schema version: x.y.z (sem-ver)

View File

@ -16,6 +16,7 @@ limitations under the License.
#include "config_falco.h"
#include "application.h"
#include "falco_engine_version.h"
using namespace falco::app;
@ -27,6 +28,7 @@ application::run_result application::print_version()
printf("Falco version: %s\n", FALCO_VERSION);
printf("Libs version: %s\n", FALCOSECURITY_LIBS_VERSION);
printf("Plugin API: %s\n", s->get_plugin_api_version());
printf("Engine: %d\n", FALCO_ENGINE_VERSION);
// todo(leogr): move string conversion to scap
auto driver_api_version = s->get_scap_api_version();