-
Notifications
You must be signed in to change notification settings - Fork 172
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
CMake project renaming, build improvements, and cleanups #41
Conversation
/retest |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
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.
Honestly, I'd prefer a top-level PRODUCT_NAME (or something) variable that all the variants get generated from. It feels weird to tie fs paths and env var names to the name of a kernel module (that happens to be the string we want)
Do you have a companion sysdig PR?
I intended to make each name configurable (without imposing any prefix/suffix) and using the PROBE_NAME as a fallback to generate defaults when values are not provided. The env var name is already configurable (except for my mistake, but I will fix it soon). |
Any chance you can add a cmake var for the module name (in /sys/modules)? Something like:
(I'm pretty sure I got something wrong, ref: https://cmake.org/cmake/help/latest/command/string.html). I know it doesn't change anything for falco (which doesn't use the -probe suffix) but it would let OSS Sysdig (and the commercial agent) keep working without risky changes to the prebuilt probes tooling |
fec348e
to
980a5cd
Compare
980a5cd
to
7dbfedd
Compare
/retest |
7dbfedd
to
cd1c847
Compare
7cf158e
to
c94f636
Compare
This patch was originally used in Falco to adapt probe naming. Reference: https://github.com/falcosecurity/falco/blob/1653898f4f8f64f94c0729415190349c8305a40b/cmake/modules/falcosecurity-libs-repo/patch/libscap.patch Co-authored-by: Lorenzo Fontana <[email protected]> Co-Authored-By: Leonardo Di Donato <[email protected]> Signed-off-by: Leonardo Grasso <[email protected]>
…efaults to "scap" Signed-off-by: Leonardo Grasso <[email protected]>
Signed-off-by: Leonardo Grasso <[email protected]>
Co-authored-by: Grzegorz Nosek <[email protected]> Signed-off-by: Leonardo Grasso <[email protected]>
Signed-off-by: Leonardo Grasso <[email protected]>
Co-authored-by: Grzegorz Nosek <[email protected]> Signed-off-by: Leonardo Grasso <[email protected]>
Signed-off-by: Leonardo Grasso <[email protected]>
Signed-off-by: Leonardo Grasso <[email protected]>
Signed-off-by: Leonardo Grasso <[email protected]>
Signed-off-by: Leonardo Grasso <[email protected]>
Signed-off-by: Leonardo Grasso <[email protected]>
c94f636
to
ae95493
Compare
What type of PR is this?
/kind cleanup
/kind feature
/kind documentation
Any specific area of the project related to this PR?
/area build
/area libscap
/area libsinsp
What this PR does / why we need it:
This PR follows up the OSS Libraries Contribution Plan by introducing the following changes:
falcosecurity-libs
The changes above mainly focus on the build system. Other naming adjustments will be addressed by following PRs.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Here you can find the testing branch in Falco: https://github.com/falcosecurity/falco/tree/build/apply-libs-pr-41N.B.: that testing branch is rebased on top of falcosecurity/falco#1671 to address an incompatible change introduced by f7029e2#diff-633539375239ac63e4a9e3358f0852d437b22e9c9f2c96de5e04e346b0b4784fL2074
TODOs:
scap
as default driver namefalcosecurity-libs
as cmake project nameDoes this PR introduce a user-facing change?: