[lxc-devel] please open lxc-cgroup for unprivileged monitoring

Harald Dunkel harald.dunkel at aixigo.de
Wed Oct 19 12:10:59 UTC 2016


Hi folks,

using an unprivileged account for monitoring lxc-cgroup
returns a "permission denied" messages for something that
is world readable in the /cgroup directory. Sample:

% lxc-cgroup -P /data1/lxc -n jerry1 memory.usage_in_bytes
lxc-cgroup: tools/lxc_cgroup.c: main: 104 Insufficent privileges to control /data1/lxc:jerry1
% cat /cgroup/lxc/jerry1/memory.usage_in_bytes
286883840

Following the api I am forced to use root permission or some
hard-to-configure sudo constructs for monitoring. This is
pretty painful.

Do you think this could be improved?


lxc is version 2.0.5.

Thanx in advance
Harri


More information about the lxc-devel mailing list