summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2023-04-10 20:42:49 +0000
committer Steven Moreland <smoreland@google.com> 2023-04-10 20:54:12 +0000
commitd0bf32670c31d47c11b5657684f1235e9050171c (patch)
tree493b59f2e8aaaac5c11d26bf2740ad576db38055
parentba9df0b0dee1bbce3d29d99203c4e835f255408a (diff)
Explicit init .rc user.
Set the user explicitly. Bug: 276813155 Test: boot Change-Id: I4d16b5b6ac8c0403b82992411beb1f567fdb5119
-rw-r--r--cmds/atrace/atrace.rc1
-rw-r--r--cmds/dumpstate/dumpstate.rc3
-rw-r--r--cmds/installd/installd.rc1
3 files changed, 5 insertions, 0 deletions
diff --git a/cmds/atrace/atrace.rc b/cmds/atrace/atrace.rc
index 6469e95a8d..c3cf2c2a60 100644
--- a/cmds/atrace/atrace.rc
+++ b/cmds/atrace/atrace.rc
@@ -533,6 +533,7 @@ on property:persist.debug.atrace.boottrace=1
# Run atrace with the categories written in a file
service boottrace /system/bin/atrace --async_start -f /data/misc/boottrace/categories
+ user root
disabled
oneshot
diff --git a/cmds/dumpstate/dumpstate.rc b/cmds/dumpstate/dumpstate.rc
index a80da4ec55..d0030dd820 100644
--- a/cmds/dumpstate/dumpstate.rc
+++ b/cmds/dumpstate/dumpstate.rc
@@ -8,6 +8,7 @@ service dumpstate /system/bin/dumpstate -s
socket dumpstate stream 0660 shell log
disabled
oneshot
+ user root
# dumpstatez generates a zipped bugreport but also uses a socket to print the file location once
# it is finished.
@@ -16,9 +17,11 @@ service dumpstatez /system/bin/dumpstate -S
class main
disabled
oneshot
+ user root
# bugreportd starts dumpstate binder service and makes it wait for a listener to connect.
service bugreportd /system/bin/dumpstate -w
class main
disabled
oneshot
+ user root
diff --git a/cmds/installd/installd.rc b/cmds/installd/installd.rc
index 5b08c776ac..525f0c8761 100644
--- a/cmds/installd/installd.rc
+++ b/cmds/installd/installd.rc
@@ -1,6 +1,7 @@
service installd /system/bin/installd
class main
+ user root
capabilities CHOWN DAC_OVERRIDE DAC_READ_SEARCH FOWNER FSETID KILL SETGID SETUID SYS_ADMIN
on early-boot