Jason Dellaluce
95940d2e16
chore(scripts): fix typos
...
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com >
2023-01-20 16:56:06 +01:00
Jason Dellaluce
1d0c50e272
update(scripts): allow regenerating signatures without publishing new packages
...
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com >
2023-01-20 16:56:06 +01:00
Jason Dellaluce
61bc6c8d32
update(scripts): sync regenerated signatures in s3
...
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com >
2023-01-20 16:56:06 +01:00
Jason Dellaluce
9f4573a26a
update(scripts): add option for updating all signatures in publish-rpm
...
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com >
2023-01-20 16:56:06 +01:00
Jason Dellaluce
ac2555ca3c
update(scripts): add option for updating all signatures in publish-deb
...
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com >
2023-01-20 16:56:06 +01:00
Furkan
8381d58f2c
chore(scripts/falco-driver-loader): improve curl resiliency
...
Fixes #2334
Signed-off-by: Furkan <furkan.turkal@trendyol.com >
2023-01-09 10:12:55 +01:00
Federico Di Pierro
9d2f1e0729
new(scripts): add bottlerocket support in falco-driver-loader.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-19 17:33:09 +01:00
Leonardo Grasso
73b9273472
chore(scripts): rename env var
...
Signed-off-by: Leonardo Grasso <me@leonardograsso.com >
2022-12-15 16:19:20 +01:00
Andrea Bonanno
7e52db2b42
update(script): makes user able to pass additional custom option to driver-loader curl command
...
Signed-off-by: Andrea Bonanno <andrea@bonanno.cloud >
2022-12-15 16:19:20 +01:00
Federico Di Pierro
a1d68e848f
chore(scripts): avoid failing if mkdir/cp/depmod fail.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
d0ac5981a7
update(scripts): typo
...
Co-authored-by: Andrea Terzolo <andrea.terzolo@polito.it >
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
380dd23a60
update(scripts): typo
...
Co-authored-by: Andrea Terzolo <andrea.terzolo@polito.it >
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
4c550bbe06
chore(scripts): manage dialog cancel button, and increase dialog vertical size to comprehend all of 5 options.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
76c8a645f1
chore(scripts): properly configure falco-kmod dependency on falco-kmod-inject with PartOf
.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Andrea Terzolo
5bb566d613
fix: stop also falco-kmod-inject.service
unit
...
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it >
2022-12-15 14:09:19 +01:00
Andrea Terzolo
ee08c4d3de
update: remove falco target
...
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
988256d930
fix(scripts): fixed rpm dialog script.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
a94f26ec43
chore(scripts): fallback at previous insmod method, if modprobe fails.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
d4d2777876
fix(scripts): fixed PartOf in bpf and modern-bpf systemd units.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
4fc10bc774
chore(scripts,cmake): rename modern_bpf to modern-bpf in deb and rpm scripts.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
87416ab67c
chore(scripts): try to install kmod system wide.
...
Then, we can always use `modprobe` to load it instead of `insmod`.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
01f4af480d
fix(scripts): fixed some debian issues by directly using systemctl tool.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
cb20cf83ff
new(scripts, cmake): added support for modern bpf probe.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
c6f668bc71
cleanup(scripts, cmake): fix switch in deb and rpm postinst scripts.
...
Cleanup cmake cpackgenerator options.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
Co-authored-by: Andrea Terzolo <andrea.terzolo@polito.it >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
1570e9f235
chore(scripts, cmake): add falco-plugin.service to install files.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
cbea78b283
fix(scripts): by default, do not enable any driver.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
ca55e70a33
chore: make dontstart default dialog selection.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
4596c919a6
fix(scripts): improve gcc skip logic.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
4e57670599
chore(scripts): add back a dontstart option.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
91fe2e9e24
chore(scripts): added support for falco@plugin.target.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
b04bb2e32e
chore(scripts): renamed Don't Start to Plugin.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
e26aa6a385
chore(scripts): when running in non-interactive mode, do not enable neither start any driver.
...
Eg: when building Falco docker image, and installing Falco package, we don't want it to build any driver.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
818f717622
chore(scripts,cmake): dialog is an optional dep, do not list it among deps.
...
Cleaned up unused vars in postinst scripts.
Finally, only show dialog window in interactive shells.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
41ffc90633
cleanup(scripts): allow falco-driver-loader script to manage more gcc versions.
...
AmazonLinux uses `gcc-$Vers`, like gcc-10, but our regex prevented that to work.
Instead, rely on the fact that **real** gcc has some `--version` fixed output.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
b6078ce1be
new(scripts): allow rpm/deb users to decide at configure time which driver to use (kmod or ebpf).
...
Manage it via a bash dialog interface.
Moreover, use falco-driver-loader instead of dkms to build bpf/kmod after package install.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
Federico Di Pierro
06fe9e6985
new(scrips): improve systemd units for rpm and debian.
...
Unify them; plus, rework systemd units to support eBPF too.
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-12-15 14:09:19 +01:00
gentooise
70dfdb2e75
support older rhel distros in falco-driver-loader
...
Tested on RHEL 6
Signed-off-by: gentooise <andrea.genuise@ibm.com >
2022-12-09 12:03:13 +01:00
Federico Di Pierro
136eacc17f
chore(scripts): when ENABLE_COMPILE is disabled, exit immediately if target distro could not be fetched.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
Co-authored-by: Leonardo Grasso <me@leonardograsso.com >
2022-11-02 12:06:29 +01:00
Federico Di Pierro
c0c0246927
fix(scripts): force falco-driver-loader script to try to compile the driver anyway even on unsupported platforms.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-11-02 12:06:29 +01:00
Andrea Terzolo
90d6d9080a
fix: inject kmod script
...
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it >
2022-10-12 16:40:21 +02:00
Andrea Terzolo
7da3041cb3
feature(falco_service): add a service unit to inject the kmod
...
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it >
2022-10-12 10:50:21 +02:00
Andrea Terzolo
48ce85f4da
fix(falco_service): falco service needs to write under /sys/module/falco
...
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it >
2022-10-12 10:50:21 +02:00
Stanley Chan
79d875c28f
cleanup(scripts): cleanup systemd unit in RPM installer
...
Signed-off-by: Stanley Chan <pocketgamer5000@gmail.com >
2022-10-07 14:47:00 +02:00
Stanley Chan
7610ee53e5
cleanup(scripts): cleanup systemd unit in DEB installer
...
Signed-off-by: Stanley Chan <pocketgamer5000@gmail.com >
2022-10-07 14:47:00 +02:00
Aldo Lacuku
670b0733de
apply suggestions from the review
...
Signed-off-by: Aldo Lacuku <aldo@lacuku.eu >
Co-authored-by: Federico Di Pierro <nierro92@gmail.com >
2022-09-07 10:14:03 +02:00
Aldo Lacuku
752c3d8332
update(scripts/falco-driver-loader): minikube environment is now correctly detected
...
If there is a file in `/etc/VERSION` the script assumes that it is running in a minikube
enviroment. Furthermore the logic in building the `KERNEL_VERSION` has been updated
according to how the kernel and probe modules are saved in the S3 bucket. The kernel version
for the minikube kernels includes also the minikube version.
Signed-off-by: Aldo Lacuku <aldo@lacuku.eu >
2022-09-07 10:14:03 +02:00
Aldo Lacuku
daba85b61c
update(scripts/falco-driver-loader): make some config variables configurable using env variables
...
When running falco-driver-loader in local we need to set some config variables to meaningful values.
Those variables usually are set by the CI during the image/packages builds. The changes introduced
by this commit allow to set them at start-up time using env variables
Signed-off-by: Aldo Lacuku <aldo@lacuku.eu >
2022-09-07 10:14:03 +02:00
Federico Di Pierro
bd865450ef
new(scripts): improved falco-driver-loader supporting any ubuntu flavor.
...
Signed-off-by: Federico Di Pierro <nierro92@gmail.com >
2022-08-30 12:25:37 +02:00
Ian Robertson
8872f256f6
Support multiple URLs for DRIVERS_REPO environment variable (comma separated)
...
Signed-off-by: Ian Robertson <ian.robertson@wpengine.com >
2022-08-24 18:25:10 +02:00
Ian Robertson
c40a216434
Identify DRIVER_VERSION and ARCH by storing in their proper directories
...
Signed-off-by: Ian Robertson <ian.robertson@wpengine.com >
2022-08-24 18:25:10 +02:00