mirror of
https://github.com/falcosecurity/falco.git
synced 2025-09-09 18:49:22 +00:00
Add use of FALCO_DRIVER_CHOICE and FALCOCTL_ENABLED env vars
Signed-off-by: Vicente J. Jiménez Miras <vjjmiras@gmail.com>
This commit is contained in:
committed by
poiana
parent
10226a6c87
commit
13991f1ea7
@@ -68,6 +68,25 @@ if [ "$1" = "configure" ]; then
|
||||
esac
|
||||
fi
|
||||
clear
|
||||
else
|
||||
case $FALCO_DRIVER_CHOICE in
|
||||
module | kmod )
|
||||
chosen_driver="kmod"
|
||||
;;
|
||||
bpf | ebpf | eBPF )
|
||||
chosen_driver="bpf"
|
||||
;;
|
||||
modern-bpf | modern-ebpf | modern-eBPF )
|
||||
chosen_driver="modern-bpf"
|
||||
;;
|
||||
esac
|
||||
case $FALCOCTL_ENABLED in
|
||||
yes )
|
||||
;;
|
||||
no )
|
||||
systemctl --system mask falcoctl-artifact-follow.service || true
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
@@ -67,6 +67,25 @@ if [ $1 -ge 1 ]; then
|
||||
esac
|
||||
fi
|
||||
clear
|
||||
else
|
||||
case $FALCO_DRIVER_CHOICE in
|
||||
module | kmod )
|
||||
chosen_driver="kmod"
|
||||
;;
|
||||
bpf | ebpf | eBPF )
|
||||
chosen_driver="bpf"
|
||||
;;
|
||||
modern-bpf | modern-ebpf | modern-eBPF )
|
||||
chosen_driver="modern-bpf"
|
||||
;;
|
||||
esac
|
||||
case $FALCOCTL_ENABLED in
|
||||
yes )
|
||||
;;
|
||||
no )
|
||||
systemctl --system mask falcoctl-artifact-follow.service || true
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user