From 3f62a020c48d5d812fb2898759b93a59dc24d310 Mon Sep 17 00:00:00 2001 From: Jeff Vander Stoep Date: Thu, 23 Jul 2015 15:18:36 -0700 Subject: logd: allow logd to write to /dev/cpuset files Required by logd on devices with USE_CPUSETS defined. Make /dev/cpuset/background, /dev/cpuset/foreground and /dev/cpuset/task writeable by system gid. Add logd to system group for writing to cpuset files and to root group to avoid regressions. When dropping privs, also drop supplementary groups. Bug: 22699101 Change-Id: Icc01769b18b5e1f1649623da8325a8bfabc3a3f0 --- rootdir/init.rc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'rootdir') diff --git a/rootdir/init.rc b/rootdir/init.rc index 7af2b77..2ac182b 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -145,9 +145,9 @@ on init chown system system /dev/cpuset/tasks chown system system /dev/cpuset/foreground/tasks chown system system /dev/cpuset/background/tasks - chmod 0644 /dev/cpuset/foreground/tasks - chmod 0644 /dev/cpuset/background/tasks - chmod 0644 /dev/cpuset/tasks + chmod 0664 /dev/cpuset/foreground/tasks + chmod 0664 /dev/cpuset/background/tasks + chmod 0664 /dev/cpuset/tasks # qtaguid will limit access to specific data based on group memberships. @@ -523,6 +523,7 @@ service logd /system/bin/logd socket logd stream 0666 logd logd socket logdr seqpacket 0666 logd logd socket logdw dgram 0222 logd logd + group root system service logd-reinit /system/bin/logd --reinit oneshot -- cgit v1.1