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

Enhanced Session Recording Improvements #3279

Merged
merged 8 commits into from
Jan 20, 2020
Merged

Conversation

russjones
Copy link
Contributor

Rolled a variety of fixes to enhanced session recording improvements into this PR.

  • 9975957 fixes issues that prevented enhanced session recording from starting on RHEL/CentOS 8.
  • 3503288 fixes an issue that prevented enhanced session recording from running on CentOS 6 due to having too old a version of glibc.
  • 2879e0a fixes an issue where the PID and parent PID were swapped from command events.
  • 57dd767 adds the ability to disable a particular BPF program by setting the page size to be 0.

Copy link
Contributor

@webvictim webvictim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM (with my limited Go experience...)

@russjones russjones force-pushed the rjones/enhanced-fixes branch 2 times, most recently from 38d87bd to 39304f9 Compare January 16, 2020 18:08
@russjones russjones removed the request for review from klizhentas January 16, 2020 18:18
russjones and others added 6 commits January 17, 2020 01:33
Drop everything after "-" when looking up the kernel version to make it
easier for the semver library to compare kernel versions.
Instead of using the "name_to_handle_at" in glibc, call
unix.NameToHandleAt (which issues that syscall directly). This allows
for cgroup resolution on systems with older version of glibc (like the
one that ships with CentOS 6).

See the following links for more details:

http://man7.org/linux/man-pages/man2/open_by_handle_at.2.html
https://godoc.org/golang.org/x/sys/unix#NameToHandleAt
PID and parent PID were swapped in command events.
If the page size for an enhanced event is 0, then don't attempt to load
that BPF program. This is helpful for BPF programs that generate massive
amounts of events (like disk events).
@russjones russjones merged commit 22d362f into master Jan 20, 2020
@russjones russjones deleted the rjones/enhanced-fixes branch January 20, 2020 22:04
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.

3 participants