mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 23:57:29 +00:00
new(falco): add engine version to --version
Signed-off-by: Luca Guerra <luca@guerra.sh>
This commit is contained in:
parent
dde2fdd67c
commit
6ea233dd75
@ -200,6 +200,7 @@ This section provides more details around the versioning of all components that
|
|||||||
Falco version: x.y.z (sem-ver like)
|
Falco version: x.y.z (sem-ver like)
|
||||||
Libs version: x.y.z (sem-ver like)
|
Libs version: x.y.z (sem-ver like)
|
||||||
Plugin API: x.y.z (sem-ver like)
|
Plugin API: x.y.z (sem-ver like)
|
||||||
|
Engine: x
|
||||||
Driver:
|
Driver:
|
||||||
API version: x.y.z (sem-ver)
|
API version: x.y.z (sem-ver)
|
||||||
Schema version: x.y.z (sem-ver)
|
Schema version: x.y.z (sem-ver)
|
||||||
|
@ -16,6 +16,7 @@ limitations under the License.
|
|||||||
|
|
||||||
#include "config_falco.h"
|
#include "config_falco.h"
|
||||||
#include "application.h"
|
#include "application.h"
|
||||||
|
#include "falco_engine_version.h"
|
||||||
|
|
||||||
using namespace falco::app;
|
using namespace falco::app;
|
||||||
|
|
||||||
@ -27,6 +28,7 @@ application::run_result application::print_version()
|
|||||||
printf("Falco version: %s\n", FALCO_VERSION);
|
printf("Falco version: %s\n", FALCO_VERSION);
|
||||||
printf("Libs version: %s\n", FALCOSECURITY_LIBS_VERSION);
|
printf("Libs version: %s\n", FALCOSECURITY_LIBS_VERSION);
|
||||||
printf("Plugin API: %s\n", s->get_plugin_api_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
|
// todo(leogr): move string conversion to scap
|
||||||
auto driver_api_version = s->get_scap_api_version();
|
auto driver_api_version = s->get_scap_api_version();
|
||||||
|
Loading…
Reference in New Issue
Block a user