Skip to content

Commit

Permalink
fix(libsinsp/runc): augument containerd filter
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Jan 20, 2025
1 parent ce530b5 commit e531ed7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/libsinsp/runc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ bool match_one_container_id(const std::string &cgroup,

// Avoid system host cgroups.
if(cgroup.rfind("/default/") == 0 && !endswith(cgroup, ".service") &&
!endswith(cgroup, ".slice")) {
!endswith(cgroup, ".slice") && endswith(cgroup, ".scope")) {
size_t reported_len = end_pos - start_pos >= REPORTED_CONTAINER_ID_LENGTH
? REPORTED_CONTAINER_ID_LENGTH
: end_pos - start_pos;
Expand Down

0 comments on commit e531ed7

Please sign in to comment.