Skip to content

Commit

Permalink
Update device_linux.go
Browse files Browse the repository at this point in the history
  • Loading branch information
servusdei2018 authored Nov 15, 2024
1 parent 9200959 commit 9ef2582
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/fuse/device_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func grantAccess() error {
return errors.Errorf("fail to find device cgroup")
}

deviceListPath := path.Join("/sys/fs/cgroup/devices", deviceCgroup, "/devices.list")
deviceAllowPath := path.Join("/sys/fs/cgroup/devices", deviceCgroup, "/devices.allow")
deviceListPath := path.Join("/sys/fs/cgroup/devices" + deviceCgroup, "/devices.list")
deviceAllowPath := path.Join("/sys/fs/cgroup/devices" + deviceCgroup, "/devices.allow")

// check if fuse is already allowed
deviceListFile, err := os.OpenFile(deviceListPath, os.O_RDONLY, 0)
Expand Down

0 comments on commit 9ef2582

Please sign in to comment.