Skip to content

Conversation

@Molter73
Copy link
Collaborator

Description

A detailed explanation of the changes in your PR.

Feel free to remove this section if it is overkill for your PR, and the title of your PR is sufficiently descriptive.

Checklist

  • Investigated and inspected CI test results
  • Updated documentation accordingly

Automated testing

  • Added unit tests
  • Added integration tests
  • Added regression tests

If any of these don't apply, please comment below.

Testing Performed

TODO(replace-me)
Use this space to explain how you tested your PR, or, if you didn't test it, why you did not do so. (Valid reasons include "CI is sufficient" or "No testable changes")
In addition to reviewing your code, reviewers must also review your testing instructions, and make sure they are sufficient.

For more details, ref the Confluence page about this section.

@Molter73 Molter73 force-pushed the mauro/rhcos-compat-arm branch from 827d14b to 98fc082 Compare October 29, 2025 11:37
@Molter73 Molter73 force-pushed the mauro/rhcos-compat-arm branch from 98fc082 to f7b7885 Compare October 30, 2025 10:23
@Molter73 Molter73 force-pushed the mauro/rhcos-compat-arm branch from f7b7885 to 037a1c2 Compare October 30, 2025 10:49
In the context of ROX-30439, I started testing fact on some RHCOS
versions and found some issues that are addressed by this PR, namely:

* The relocation of kernfs_node for the renamed parent field was wrong,
  causing cgroups to not be captured correctly.
* Some missing null checks that are not necessary on newer kernels.
* path_unlink LSM hook is not allowed to call bpf_d_path on older
  kernels.

This last point is the most involved part of the PR, I couldn't find a
precise way to check if this call is allowed on the running kernel, so
instead I created a small checks BPF object that can try to load a small
probe and check if the load was successful, then use a constant loaded
at runtime to exclude the call when needed.
@Molter73 Molter73 force-pushed the mauro/rhcos-compat-arm branch from 037a1c2 to 856f030 Compare October 30, 2025 11:44
Base automatically changed from mauro/rhcos-compat to main November 17, 2025 16:05
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.

1 participant