Comment 1 for bug 1656309

Revision history for this message
Eric Desrochers (slashd) wrote : Re: permission denied in "/var/lib/lxcfs/cgroup/[memory-blkio-devices" when querying /var with command such as : find,du,ls, ...

After having apply the upstream commit[1]:

# du -hs /var
36G /var

# find /var -name "foo"

# ls -altr /var/lib/lxcfs/cgroup/devices/
total 0
drwxr-xr-x 2 root root 0 Jan 13 08:28 ..
drwxr-xr-x 2 root root 0 Jan 13 08:28 .
-rw-r--r-- 1 root root 0 Jan 13 08:28 tasks
-rw-r--r-- 1 root root 0 Jan 13 08:28 cgroup.procs
--w------- 1 root root 0 Jan 13 08:28 devices.allow
-rw-r--r-- 1 root root 0 Jan 13 08:28 release_agent
-rw-r--r-- 1 root root 0 Jan 13 08:28 cgroup.clone_children
-r--r--r-- 1 root root 0 Jan 13 08:28 cgroup.sane_behavior
-rw-r--r-- 1 root root 0 Jan 13 08:28 notify_on_release
--w------- 1 root root 0 Jan 13 08:28 devices.deny
-r--r--r-- 1 root root 0 Jan 13 08:28 devices.list
drwxr-xr-x 2 root root 0 Jan 13 08:28 machine
drwxr-xr-x 2 root root 0 Jan 13 08:28 init.scope
drwxr-xr-x 2 root root 0 Jan 13 08:28 system.slice
drwxr-xr-x 2 root root 0 Jan 13 08:28 user.slice

[1] - 4117b6c bindings: allow getattr on O_WRONLY files