-
Notifications
You must be signed in to change notification settings - Fork 905
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(falco_service): falco service needs to write under /sys/module/falco
#2238
Conversation
…alco` Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
@leogr @FedeDP @happy-dude WDYT? |
PS: I forgot to mention that |
The first commit propose the
The last commit propose the
|
6fda8ab
to
27217c2
Compare
27217c2
to
8fca6ee
Compare
Signed-off-by: Andrea Terzolo <andrea.terzolo@polito.it>
8fca6ee
to
e2821d1
Compare
Does While I don't love having multiple service units, I do appreciate the clarity that comes from splitting the |
Hi @happy-dude ! Btw i am working on an improvements over the current falco systemd unit, to support bpf too. I will hopefully remember to tag you when the PR it's open :D |
The changes LGTM. I'll wait some more feedback! |
/milestone 0.33.0 |
See also #2242 . |
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.
/approve
LGTM label has been added. Git tree hash: 43d9aa61422d96b75c563125b6151806a877ed1d
|
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP, jasondellaluce 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 bug
Any specific area of the project related to this PR?
/area build
What this PR does / why we need it:
Trying to run the latest Falco deb/rpm package there is an issue:
Since this PR #2214, Falco service needs to write under
/sys/module/falco/parameters/g_buffer_bytes_dim
the variable buffer dimension. The problem is that right now the path/sys/module
is mounted read-only so Falco will fail withErrno 30
in the attempt to write/sys/module/falco/parameters/g_buffer_bytes_dim
:Considering the falco service config:
there are some solutions to this problem:
ProtectKernelTunables
tofalse
/sys/module/falco
is already there, in this way the falco unit could setReadWritePaths
to only/sys/module/falco
ReadWritePaths
to/sys/module
because the falco subfolder is not yet created at startup-time and we cannotmkdir
this directory into another unit because we cannot create folders undersys/module
only the kernel can do that.Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: