-
Notifications
You must be signed in to change notification settings - Fork 909
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(docker,scripts): do not load falcoctl driver loader when installing Falco deb package in docker images #3166
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,7 +44,7 @@ RUN apt-get update \ | |
RUN curl -s https://falco.org/repo/falcosecurity-packages.asc | apt-key add - \ | ||
&& echo "deb https://download.falco.org/packages/${VERSION_BUCKET} stable main" | tee -a /etc/apt/sources.list.d/falcosecurity.list \ | ||
&& apt-get update -y \ | ||
&& if [ "$FALCO_VERSION" = "latest" ]; then apt-get install -y --no-install-recommends falco; else apt-get install -y --no-install-recommends falco=${FALCO_VERSION}; fi \ | ||
&& if [ "$FALCO_VERSION" = "latest" ]; then FALCO_DRIVER_CHOICE=none apt-get install -y --no-install-recommends falco; else FALCO_DRIVER_CHOICE=none apt-get install -y --no-install-recommends falco=${FALCO_VERSION}; fi \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid running driver loader at this stage |
||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,7 @@ if [ "$1" = "configure" ]; then | |
;; | ||
esac | ||
if [ -n "$chosen_driver" ]; then | ||
echo "[POST-INSTALL] Configure falcoctl driver type:" | ||
echo "[POST-INSTALL] Configure falcoctl '$chosen_driver' driver type:" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Debug print. |
||
if [ "$chosen_driver" = "auto" ]; then | ||
# Configure falcoctl to enable all drivers | ||
falcoctl driver config --type "modern_ebpf" --type "ebpf" --type "kmod" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,7 @@ if [ $1 -ge 1 ]; then | |
;; | ||
esac | ||
if [ -n "$chosen_driver" ]; then | ||
echo "[POST-INSTALL] Configure falcoctl '$chosen_driver' driver type:" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Debug print (same as deb package!) |
||
if [ "$chosen_driver" = "auto" ]; then | ||
# Configure falcoctl to enable all drivers | ||
falcoctl driver config --type "modern_ebpf" --type "ebpf" --type "kmod" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid running driver loader at this stage