mirror of
https://github.com/falcosecurity/falco.git
synced 2026-04-02 18:12:15 +00:00
Compare commits
5 Commits
ekoops-pat
...
release/0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9a4205cc70 | ||
|
|
be3c44fe38 | ||
|
|
cae02e96b9 | ||
|
|
4fc6153160 | ||
|
|
b3f009ad4c |
@@ -19,29 +19,36 @@ if(NOT FALCO_VERSION)
|
|||||||
# Try to obtain the exact git tag
|
# Try to obtain the exact git tag
|
||||||
git_get_exact_tag(FALCO_TAG)
|
git_get_exact_tag(FALCO_TAG)
|
||||||
if(NOT FALCO_TAG)
|
if(NOT FALCO_TAG)
|
||||||
# Fetch current hash
|
# Obtain the closest tag
|
||||||
get_git_head_revision(refspec FALCO_HASH)
|
git_describe(FALCO_VERSION "--always" "--tags" "--abbrev=7")
|
||||||
if(NOT FALCO_HASH OR FALCO_HASH MATCHES "NOTFOUND$")
|
string(REGEX MATCH "^[0-9]+.[0-9]+.[0-9]+$" FALCO_TAG ${FALCO_VERSION})
|
||||||
set(FALCO_VERSION "0.0.0")
|
if(FALCO_VERSION MATCHES "NOTFOUND$" OR FALCO_TAG STREQUAL "")
|
||||||
else()
|
# Fetch current hash
|
||||||
# Obtain the closest tag
|
get_git_head_revision(refspec FALCO_HASH)
|
||||||
git_get_latest_tag(FALCO_LATEST_TAG)
|
if(NOT FALCO_HASH OR FALCO_HASH MATCHES "NOTFOUND$")
|
||||||
if(NOT FALCO_LATEST_TAG OR FALCO_LATEST_TAG MATCHES "NOTFOUND$")
|
|
||||||
set(FALCO_VERSION "0.0.0")
|
set(FALCO_VERSION "0.0.0")
|
||||||
else()
|
else()
|
||||||
# Compute commit delta since tag
|
# Obtain the closest tag
|
||||||
git_get_delta_from_tag(FALCO_DELTA ${FALCO_LATEST_TAG} ${FALCO_HASH})
|
git_get_latest_tag(FALCO_LATEST_TAG)
|
||||||
if(NOT FALCO_DELTA OR FALCO_DELTA MATCHES "NOTFOUND$")
|
if(NOT FALCO_LATEST_TAG OR FALCO_LATEST_TAG MATCHES "NOTFOUND$")
|
||||||
set(FALCO_VERSION "0.0.0")
|
set(FALCO_VERSION "0.0.0")
|
||||||
else()
|
else()
|
||||||
# Cut hash to 7 bytes
|
# Compute commit delta since tag
|
||||||
string(SUBSTRING ${FALCO_HASH} 0 7 FALCO_HASH)
|
git_get_delta_from_tag(FALCO_DELTA ${FALCO_LATEST_TAG} ${FALCO_HASH})
|
||||||
# Format FALCO_VERSION to be semver with prerelease and build part
|
if(NOT FALCO_DELTA OR FALCO_DELTA MATCHES "NOTFOUND$")
|
||||||
set(FALCO_VERSION
|
set(FALCO_VERSION "0.0.0")
|
||||||
"${FALCO_LATEST_TAG}-${FALCO_DELTA}+${FALCO_HASH}")
|
else()
|
||||||
endif()
|
# Cut hash to 7 bytes
|
||||||
|
string(SUBSTRING ${FALCO_HASH} 0 7 FALCO_HASH)
|
||||||
|
# Format FALCO_VERSION to be semver with prerelease and build part
|
||||||
|
set(FALCO_VERSION
|
||||||
|
"${FALCO_LATEST_TAG}-${FALCO_DELTA}+${FALCO_HASH}")
|
||||||
|
endif()
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
# Format FALCO_VERSION to be semver with prerelease and build part
|
||||||
|
string(REPLACE "-g" "+" FALCO_VERSION "${FALCO_VERSION}")
|
||||||
else()
|
else()
|
||||||
# A tag has been found: use it as the Falco version
|
# A tag has been found: use it as the Falco version
|
||||||
set(FALCO_VERSION "${FALCO_TAG}")
|
set(FALCO_VERSION "${FALCO_TAG}")
|
||||||
|
|||||||
@@ -27,8 +27,8 @@ else()
|
|||||||
# In case you want to test against another falcosecurity/libs version (or branch, or commit) just pass the variable -
|
# In case you want to test against another falcosecurity/libs version (or branch, or commit) just pass the variable -
|
||||||
# ie., `cmake -DFALCOSECURITY_LIBS_VERSION=dev ..`
|
# ie., `cmake -DFALCOSECURITY_LIBS_VERSION=dev ..`
|
||||||
if(NOT FALCOSECURITY_LIBS_VERSION)
|
if(NOT FALCOSECURITY_LIBS_VERSION)
|
||||||
set(FALCOSECURITY_LIBS_VERSION "0.10.3")
|
set(FALCOSECURITY_LIBS_VERSION "0.10.4")
|
||||||
set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=be6c771b9182fcd8fcd52cb56022c380edf6e051d1b0eee1983e093494ac0837")
|
set(FALCOSECURITY_LIBS_CHECKSUM "SHA256=30c5c846b6336d51473bb73bc0e6c18f91dd931e346ae34f18ad7ad4a5b904a2")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# cd /path/to/build && cmake /path/to/source
|
# cd /path/to/build && cmake /path/to/source
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ LABEL maintainer="cncf-falco-dev@lists.cncf.io"
|
|||||||
LABEL usage="docker run -i -t --privileged -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro --name NAME IMAGE"
|
LABEL usage="docker run -i -t --privileged -v /var/run/docker.sock:/host/var/run/docker.sock -v /dev:/host/dev -v /proc:/host/proc:ro --name NAME IMAGE"
|
||||||
# NOTE: for the "least privileged" use case, please refer to the official documentation
|
# NOTE: for the "least privileged" use case, please refer to the official documentation
|
||||||
|
|
||||||
|
RUN apt-get -y update && apt-get -y install ca-certificates
|
||||||
|
|
||||||
ENV HOST_ROOT /host
|
ENV HOST_ROOT /host
|
||||||
ENV HOME /root
|
ENV HOME /root
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
|
|
||||||
// The version of rules/filter fields/etc supported by this Falco
|
// The version of rules/filter fields/etc supported by this Falco
|
||||||
// engine.
|
// engine.
|
||||||
#define FALCO_ENGINE_VERSION (15)
|
#define FALCO_ENGINE_VERSION (16)
|
||||||
|
|
||||||
// This is the result of running "falco --list -N | sha256sum" and
|
// This is the result of running "falco --list -N | sha256sum" and
|
||||||
// represents the fields supported by this version of Falco. It's used
|
// represents the fields supported by this version of Falco. It's used
|
||||||
|
|||||||
Reference in New Issue
Block a user