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

correctly clean loaded drivers in falco-driver-loader #1795

Merged
merged 2 commits into from
Dec 6, 2021

Conversation

jasondellaluce
Copy link
Contributor

@jasondellaluce jasondellaluce commented Nov 18, 2021

Signed-off-by: Jason Dellaluce jasondellaluce@gmail.com
Co-authored-by: Leonardo Grasso me@leonardograsso.com

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area build

What this PR does / why we need it:
This fixes the --clean option of falco-driver-loader, which currently fails to remove the loaded kernel modules. The fail was caused by grabbing the wrong token from the output of dkms status -m falco.

Which issue(s) this PR fixes:

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

fix(scripts/falco-driver-loader): correctly clean loaded drivers when using `--clean`

Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
Co-authored-by: Leonardo Grasso <me@leonardograsso.com>
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just need to refine the output message.
See my suggestions below

scripts/falco-driver-loader Outdated Show resolved Hide resolved
scripts/falco-driver-loader Outdated Show resolved Hide resolved
@leogr
Copy link
Member

leogr commented Nov 22, 2021

/milestone 0.31.0

@poiana poiana added this to the 0.31.0 milestone Nov 22, 2021
@leogr
Copy link
Member

leogr commented Nov 22, 2021

/cc @leodido

@poiana poiana requested a review from leodido November 22, 2021 17:32
Signed-off-by: Jason Dellaluce jasondellaluce@gmail.com
Co-authored-by: Leonardo Grasso me@leonardograsso.com
Copy link
Member

@leogr leogr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana poiana added the lgtm label Dec 6, 2021
@poiana
Copy link

poiana commented Dec 6, 2021

LGTM label has been added.

Git tree hash: 7e9e2bad3d3a1d89e9b1e42898a9a5afbe0fd358

@poiana
Copy link

poiana commented Dec 6, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jasondellaluce, leogr

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 added the approved label Dec 6, 2021
@poiana poiana merged commit 697d442 into falcosecurity:master Dec 6, 2021
@jasondellaluce jasondellaluce deleted the fix/driver-loader-clean branch December 9, 2021 08:10
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.

None yet

4 participants