Public bug reported:

[Impact]

 * Getting a permission denied when querying "/var" using commands such
as : find, du, ls, .... complaining about permission denied in
"/var/lib/lxcfs/cgroup/[memory-blkio-devices]"

[Test Case]

 * On a Xenial/Zesty machine with lxcfs installed
(<=2.0.5-0ubuntu1~ubuntu16.04.1)

# find /var -name "foo"
..
find: ‘/var/lib/lxcfs/cgroup/devices/user.slice/user-0.slice/devices.allow’: 
Permission denied
find: ‘/var/lib/lxcfs/cgroup/devices/user.slice/user-0.slice/devices.deny’: 
Permission denied
find: 
‘/var/lib/lxcfs/cgroup/devices/user.slice/user-0.slice/user@0.service/devices.allow’:
 Permission denied
...

# du -hs /var
..
du: cannot access 
'/var/lib/lxcfs/cgroup/devices/user.slice/user-0.slice/user@0.service/devices.deny':
 Permission denied
du: cannot access 
'/var/lib/lxcfs/cgroup/devices/user.slice/user-0.slice/session-27.scope/devices.allow':
 Permission denied
36G     /var
..


# ls -altr /var/lib/lxcfs/cgroup/devices/
ls: cannot access '/var/lib/lxcfs/cgroup/devices/devices.allow': Permission 
denied
ls: cannot access '/var/lib/lxcfs/cgroup/devices/devices.deny': Permission 
denied
total 0
?????????? ? ?    ?    ?            ? devices.deny
?????????? ? ?    ?    ?            ? devices.allow


[Regression Potential] 

 * None expected, change is trivial and already in lxcfs GitHub upstream src 
code
[https://github.com/lxc/lxcfs]

[Other Info]
 
 * Commit ID   : 4117b6c bindings: allow getattr on O_WRONLY files
 * Commit URL  : 
https://github.com/lxc/lxcfs/commit/4117b6ca6091d811581e236f5fc2d62d12c11c4e

** Affects: lxcfs (Ubuntu)
     Importance: Medium
         Status: Fix Released

** Changed in: lxcfs (Ubuntu)
   Importance: Undecided => Medium

** Summary changed:

- permission denied in /var/lib/lxcfs/....when querying with find,du,ls, ...
+ permission denied in "/var/lib/lxcfs/cgroup/[memory-blkio-devices" when 
querying /var with command such as : find,du,ls, ...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1656309

Title:
  permission denied in "/var/lib/lxcfs/cgroup/[memory-blkio-devices]"
  when querying /var with command such as : find,du,ls, ...

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxcfs/+bug/1656309/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to