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:
Vicente J. Jiménez Miras
2023-09-05 15:16:01 +02:00
committed by poiana
parent 10226a6c87
commit 13991f1ea7
2 changed files with 38 additions and 0 deletions

View File

@@ -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

View File

@@ -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