Skip to content

Commit 13991f1

Browse files
vjjmiraspoiana
authored andcommitted
Add use of FALCO_DRIVER_CHOICE and FALCOCTL_ENABLED env vars
Signed-off-by: Vicente J. Jiménez Miras <vjjmiras@gmail.com>
1 parent 10226a6 commit 13991f1

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

‎scripts/debian/postinst.in‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,25 @@ if [ "$1" = "configure" ]; then
6868
esac
6969
fi
7070
clear
71+
else
72+
case $FALCO_DRIVER_CHOICE in
73+
module | kmod )
74+
chosen_driver="kmod"
75+
;;
76+
bpf | ebpf | eBPF )
77+
chosen_driver="bpf"
78+
;;
79+
modern-bpf | modern-ebpf | modern-eBPF )
80+
chosen_driver="modern-bpf"
81+
;;
82+
esac
83+
case $FALCOCTL_ENABLED in
84+
yes )
85+
;;
86+
no )
87+
systemctl --system mask falcoctl-artifact-follow.service || true
88+
;;
89+
esac
7190
fi
7291
fi
7392

‎scripts/rpm/postinstall.in‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,25 @@ if [ $1 -ge 1 ]; then
6767
esac
6868
fi
6969
clear
70+
else
71+
case $FALCO_DRIVER_CHOICE in
72+
module | kmod )
73+
chosen_driver="kmod"
74+
;;
75+
bpf | ebpf | eBPF )
76+
chosen_driver="bpf"
77+
;;
78+
modern-bpf | modern-ebpf | modern-eBPF )
79+
chosen_driver="modern-bpf"
80+
;;
81+
esac
82+
case $FALCOCTL_ENABLED in
83+
yes )
84+
;;
85+
no )
86+
systemctl --system mask falcoctl-artifact-follow.service || true
87+
;;
88+
esac
7089
fi
7190
fi
7291

0 commit comments

Comments
 (0)