forked from Ivasoft/device-mapping-manager
Further application of /host prefix
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
4
main.go
4
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user