diff options
author | Jon Medhurst <tixy@linaro.org> | 2013-01-22 17:26:50 +0000 |
---|---|---|
committer | Ubuntu <vishal.bhoj@linaro.org> | 2014-06-05 10:01:57 +0000 |
commit | 739c715159833f3871baba1444208efd3b5b889d (patch) | |
tree | 154a202069afc61515fcec46395b36d545b344ae | |
parent | 091dd30cceaf83e8c83422e976dd0cdf23e56bdf (diff) |
rootdir: init.rc: Fix for "add_tid_to_cgroup failed to write" warnings
Logcat is full of warnings like:
W/SchedPolicy( 2013): add_tid_to_cgroup failed to write '2371' (Permission denied); policy=1
This is fixed by giving /dev/cpuctl group write permissions, which was
surely the original intention of the init.rc setup as this is done for
the sub-directories it creates.
This fixes bug launchpad bug #1037611
Change-Id: I47ff539ef4dd9922aba0be67dbf8bd4f0a234163
Signed-off-by: Jon Medhurst <tixy@linaro.org>
-rw-r--r-- | rootdir/init.rc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 899700ca..f34307d5 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -106,6 +106,7 @@ loglevel 3 mkdir /dev/cpuctl mount cgroup none /dev/cpuctl cpu chown system system /dev/cpuctl + chmod 0660 /dev/cpuctl chown system system /dev/cpuctl/tasks chmod 0660 /dev/cpuctl/tasks write /dev/cpuctl/cpu.shares 1024 |