mirror of
https://github.com/ARM-software/devlib.git
synced 2025-03-04 09:17:51 +00:00
cgroups: add execute as root
On latest hikey960 android image, only root can execute: cat /proc/cgroups Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
This commit is contained in:
parent
d6ccbb44c3
commit
be4f01ebaf
@ -394,7 +394,7 @@ class CgroupsModule(Module):
|
|||||||
def list_subsystems(self):
|
def list_subsystems(self):
|
||||||
subsystems = []
|
subsystems = []
|
||||||
for line in self.target.execute('{} cat /proc/cgroups'\
|
for line in self.target.execute('{} cat /proc/cgroups'\
|
||||||
.format(self.target.busybox)).splitlines()[1:]:
|
.format(self.target.busybox), as_root=self.target.is_rooted).splitlines()[1:]:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if not line or line.startswith('#'):
|
if not line or line.startswith('#'):
|
||||||
continue
|
continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user