diff --git a/scripts/debian/postinst.in b/scripts/debian/postinst.in index 2c493ede..5ef75dc9 100755 --- a/scripts/debian/postinst.in +++ b/scripts/debian/postinst.in @@ -75,15 +75,11 @@ set -e echo "[POST-INSTALL] Trigger deamon-reload:" systemctl --system daemon-reload || true -# If needed, try to load/compile the driver through falco-driver-loader +# If needed, try to load/compile the driver through falco-driver-loader (only compile for kmod, that uses dkms) case "$chosen_driver" in "kmod") - echo "[POST-INSTALL] Call 'falco-driver-loader module':" - falco-driver-loader module - ;; - "bpf") - echo "[POST-INSTALL] Call 'falco-driver-loader bpf':" - falco-driver-loader bpf + echo "[POST-INSTALL] Call 'falco-driver-loader --compile module':" + falco-driver-loader --compile module ;; esac diff --git a/scripts/rpm/postinstall.in b/scripts/rpm/postinstall.in index feb90f02..caed7a18 100755 --- a/scripts/rpm/postinstall.in +++ b/scripts/rpm/postinstall.in @@ -74,15 +74,11 @@ set -e echo "[POST-INSTALL] Trigger deamon-reload:" systemctl --system daemon-reload || true -# If needed, try to load/compile the driver through falco-driver-loader +# If needed, try to load/compile the driver through falco-driver-loader (only compile for kmod, that uses dkms) case "$chosen_driver" in "kmod") - echo "[POST-INSTALL] Call 'falco-driver-loader module':" - falco-driver-loader module - ;; - "bpf") - echo "[POST-INSTALL] Call 'falco-driver-loader bpf':" - falco-driver-loader bpf + echo "[POST-INSTALL] Call 'falco-driver-loader --compile module':" + falco-driver-loader --compile module ;; esac diff --git a/scripts/systemd/falco-bpf.service b/scripts/systemd/falco-bpf.service index e83ef6c9..fe833c76 100644 --- a/scripts/systemd/falco-bpf.service +++ b/scripts/systemd/falco-bpf.service @@ -8,6 +8,7 @@ Wants=falcoctl-artifact-follow.service Type=simple User=root Environment=FALCO_BPF_PROBE= +ExecStartPre=/usr/bin/falco-driver-loader bpf ExecStart=/usr/bin/falco --pidfile=/var/run/falco.pid UMask=0077 TimeoutSec=30