fix(falco_service): falco service needs to write under /sys/module/falco#2238
fix(falco_service): falco service needs to write under /sys/module/falco#2238
/sys/module/falco#2238Conversation
…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 . |
|
LGTM label has been added. DetailsGit tree hash: 43d9aa61422d96b75c563125b6151806a877ed1d |
|
[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 DetailsNeeds 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_dimthe variable buffer dimension. The problem is that right now the path/sys/moduleis mounted read-only so Falco will fail withErrno 30in the attempt to write/sys/module/falco/parameters/g_buffer_bytes_dim:Considering the falco service config:
there are some solutions to this problem:
ProtectKernelTunablestofalse/sys/module/falcois already there, in this way the falco unit could setReadWritePathsto only/sys/module/falcoReadWritePathsto/sys/modulebecause the falco subfolder is not yet created at startup-time and we cannotmkdirthis directory into another unit because we cannot create folders undersys/moduleonly the kernel can do that.Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?: