am 3f62a020
: logd: allow logd to write to /dev/cpuset files
* commit '3f62a020c48d5d812fb2898759b93a59dc24d310': logd: allow logd to write to /dev/cpuset files
This commit is contained in:
commit
1d0fe13a9e
2 changed files with 8 additions and 3 deletions
|
@ -103,6 +103,10 @@ static int drop_privs() {
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (setgroups(0, NULL) == -1) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (setgid(AID_LOGD) != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -152,9 +152,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.
|
||||
|
@ -539,6 +539,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
|
||||
|
|
Loading…
Reference in a new issue