Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 500364

Summary: Executing status under non root account should not produce errors
Product: Gentoo Hosted Projects Reporter: Alon Bar-Lev (RETIRED) <alonbl>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED FIXED    
Severity: normal CC: noreply
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 481182    

Description Alon Bar-Lev (RETIRED) gentoo-dev 2014-02-05 12:52:40 UTC
Please see the following example.

Thanks!

$ /etc/init.d/dnsmasq status
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/cpu/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/cpuacct/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/cpuset/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/devices/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/freezer/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/memory/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/openrc/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 87: /sys/fs/cgroup/openrc/dnsmasq/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/cpu/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/cpuacct/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/cpuset/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/devices/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/freezer/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/memory/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 80: /sys/fs/cgroup/openrc/tasks: Permission denied
/lib64/rc/sh/rc-cgroup.sh: line 87: /sys/fs/cgroup/openrc/dnsmasq/tasks: Permission denied
 * status: started
Comment 1 Alexander Vershilov (RETIRED) gentoo-dev 2014-02-16 00:38:29 UTC
Relevant pull request:

  https://github.com/OpenRC/openrc/pull/16

There will be a round of discussion about: 

1). do we need to suppress warnings in rc-cgroups.sh

2). when we need to add set cgroup limits and add process to the service cgroup

After that discussion will be finished patches will be applied.
Comment 2 William Hubbs gentoo-dev 2014-07-10 17:28:37 UTC
This has been added in commit 1a44be0 and will be part of OpenRC-0.13.
Comment 3 William Hubbs gentoo-dev 2014-08-07 21:36:06 UTC
*** Bug 510636 has been marked as a duplicate of this bug. ***