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

build: Add support for linking to shared falcosecurity libraries. #2093

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

Apteryks
Copy link
Contributor

@Apteryks Apteryks commented May 8, 2024

  • cmake/modules/falcosecurity-libs.cmake (USE_BUNDLED_FALCOSECURITY_LIBS): New option. Look for libsinsp via pkg-config unless it's enabled.
  • userspace/sysdig/CMakeLists.txt: Adjust link directives accordingly. Remove extraneous zlib include.

@Apteryks Apteryks requested a review from therealbobo as a code owner May 8, 2024 02:43
userspace/sysdig/CMakeLists.txt Outdated Show resolved Hide resolved
@Apteryks
Copy link
Contributor Author

Apteryks commented May 9, 2024

Note that this depends on falcosecurity/libs#1842 to work.

@Apteryks Apteryks force-pushed the support-shared-falcosecurity-libs branch from 9327969 to 35ea4d3 Compare May 19, 2024 01:01
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@Apteryks Apteryks requested a review from therealbobo May 19, 2024 01:42
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Sep 16, 2024
@Apteryks
Copy link
Contributor Author

Not stale (that's an aggressive bot!).

@github-actions github-actions bot removed the stale label Sep 18, 2024
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Jan 16, 2025
@Apteryks
Copy link
Contributor Author

Hi, I'll try to update it this week.

@github-actions github-actions bot removed the stale label Jan 21, 2025
@Apteryks
Copy link
Contributor Author

So, looking back at this, are there actual problems preventing this from being merged? I see a windows and macos-13 build failing, but maybe these are flukes/known issues?

@Apteryks
Copy link
Contributor Author

PS: that bot really gets on my nerves

@therealbobo
Copy link
Contributor

seems good to me! I build is currently broken and I have an ongoing PR to fix it. Once is merged I'll relaunch le build on this PR.

@therealbobo therealbobo self-requested a review January 22, 2025 12:45
@therealbobo
Copy link
Contributor

@Apteryks do you mind rebasing before merging?

userspace/sysdig/CMakeLists.txt Outdated Show resolved Hide resolved
@Apteryks Apteryks force-pushed the support-shared-falcosecurity-libs branch 4 times, most recently from 0cacaea to 96ab67d Compare January 23, 2025 06:53
@Apteryks
Copy link
Contributor Author

@Apteryks do you mind rebasing before merging?

Done!

* cmake/modules/falcosecurity-libs.cmake (USE_BUNDLED_FALCOSECURITY_LIBS):
New option.  Look for libsinsp via pkg-config unless it's enabled.
* userspace/sysdig/CMakeLists.txt: Adjust link directives accordingly.

Signed-off-by: Maxim Cournoyer <[email protected]>
* cmake/modules/falcosecurity-libs.cmake: Require falcosecurity-libs
0.20.0.
* userspace/chisel/chisel_api.cpp (lua_cbacks::get_thread_table_int):
Adjust for falcosecurity-libs commit
417e523399796d7290a479fd55988e62e80fc97e ("drop user and group infos
embedded in threadinfo."); this is a follow-up that simplifies
04f54e5 a bit.

Fixes: draios#2132
Signed-off-by: Maxim Cournoyer <[email protected]>
@Apteryks Apteryks force-pushed the support-shared-falcosecurity-libs branch from 96ab67d to 4f41c30 Compare January 23, 2025 14:49
@therealbobo therealbobo merged commit 278f041 into draios:dev Jan 24, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants