Skip to content

Commit

Permalink
fix(scap): initialize cgroup interface during platform init.
Browse files Browse the repository at this point in the history
Signed-off-by: Wiktor Golgowski <wiktor.golgowski@sysdig.com>
  • Loading branch information
wigol authored and poiana committed Aug 17, 2023
1 parent b607089 commit a1f76f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions userspace/libscap/linux/scap_linux_platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@ int32_t scap_linux_init_platform(struct scap_platform* platform, char* lasterr,
}
}

rc = scap_cgroup_interface_init(&linux_platform->m_cgroups, scap_get_host_root(), lasterr, false);
if(rc != SCAP_SUCCESS)
{
scap_linux_free_platform(platform);
return rc;
}

linux_platform->m_lasterr[0] = '\0';
char proc_scan_err[SCAP_LASTERR_SIZE];
rc = scap_linux_refresh_proc_table(platform, &platform->m_proclist);
Expand Down

0 comments on commit a1f76f6

Please sign in to comment.