Further application of /host prefix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-09-25 19:19:00 +02:00
parent 184a955449
commit 2a8b859562

View File

@@ -99,7 +99,7 @@ func listenForMounts() {
panic(err)
} else {
pid := info.State.Pid
version, err := cgroup.GetDeviceCGroupVersion("/host", pid)
version, err := cgroup.GetDeviceCGroupVersion(rootPath, pid)
log.Printf("The cgroup version for process %d is: %v\n", pid, version)
if err != nil {
log.Println(err)
@@ -120,7 +120,7 @@ func listenForMounts() {
}
api, err := cgroup.New(version)
cgroupPath, sysfsPath, err := api.GetDeviceCGroupMountPath("/", pid)
cgroupPath, sysfsPath, err := api.GetDeviceCGroupMountPath(rootPath, pid)
if err != nil {
log.Println(err)