Skip to content
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(userspace/falco): do not always rethrow the exception #1366

Merged
merged 1 commit into from
Aug 25, 2020

Conversation

leogr
Copy link
Member

@leogr leogr commented Aug 25, 2020

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area engine

What this PR does / why we need it:

We have noticed that the kernel module was not loaded always when using Falco deb/rpm packages.
When we had investigated the fallback mechanism included in those scripts (see #1365 ) we then noticed that the Falco binary is loading the module by itself at some point.
Unfortunately, the implementation was thrown an exception even if it was able to load the module correctly.

This PR just fixes the case when open_f works after modprobe thus the exception must not be thrown and the execution can continue normally.

Which issue(s) this PR fixes:

Fixes #1347

Special notes for your reviewer:

/milestone 0.25.0
/cc @fntlnz

Does this PR introduce a user-facing change?:

fix(userspace/falco): correct the fallback mechanism for loading the kernel module

Co-Authored-By: Lorenzo Fontana <fontanalorenz@gmail.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@poiana
Copy link

poiana commented Aug 25, 2020

LGTM label has been added.

Git tree hash: 6cfeb2f0f397a0da76a4c4ce4bae78c6dce5f4a8

@poiana
Copy link

poiana commented Aug 25, 2020

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fntlnz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 385d6ef into master Aug 25, 2020
@poiana poiana deleted the fix/modprobe-fallback branch August 25, 2020 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Centos 7.7: Falco Will Only Start After Multiple Restarts
3 participants