-
Notifications
You must be signed in to change notification settings - Fork 912
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
falco-driver-loader improvements (custom driver name + clean previous drivers functionality) #1488
Conversation
/milestone 0.27.0 |
Thank you for this PR. We definitely need that 👍 Although specifying a custom
Thus, as discussed privately, I believe it worth adds just a specific cleanup command for the old |
Yep, that's the reason this PR is WIP @leogr :) As discussed privately, we probably need to add 3rd action for the script (eg., |
That's ok for me too. But, do we still want a simple clean-up for |
That's up to us to decide. My personal vote is to leave the behaviour as it currently is and just add a |
Ok, let's do this step-by-step. So I can work on the |
Yes, we all agree on that. As also discussed privately. :) Then, we could also think about how to make the upgrade process straightforward even if the driver name changes again. |
Done by aa892e4 :)
👍 |
…er name Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
…een built for, also the driver version in use Both in the help/usage message and at running time. Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
built for Co-authored-by: Lorenzo Fontana <lo@linux.com> Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Co-authored-by: Leonardo Di Donato <leodidonato@gmail.com> Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
0fb8f4a
to
abd040e
Compare
LGTM label has been added. Git tree hash: c7883d2b3b5513cff0688e4579695580d2e57cb7
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: fntlnz, 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 |
What type of PR is this?
/kind documentation
/kind feature
Any specific area of the project related to this PR?
NONE
What this PR does / why we need it:
It lets users specify a custom
DRIVER_NAME
getting it from the environment. It can be useful when the user has a Falco kernel-module with a different name (eg.,falco_probe
) from the current default one (ie.,falco
).This way (
DRIVER_NAME=falco_probe falco-driver-loader module
) it will look for a kernel module (vialsmod
) namedfalco_probe
and remove it (rmmod
).Furthermore, the module should also be removed from
dkms
. WIP for this reason.Last but not least, for debugging and clarity purposes, this PR make the
falco-driver-loader
script aware of the Falco version it has been built for.And outputs it at:
Which issue(s) this PR fixes:
Fixes #1486
Special notes for your reviewer:
/cc @leogr
/cc @fntlnz
Does this PR introduce a user-facing change?: