summaryrefslogtreecommitdiff
path: root/init/action_parser.cpp
diff options
context:
space:
mode:
authorTom Cherry <tomcherry@google.com>2019-06-06 13:41:20 -0700
committerTom Cherry <tomcherry@google.com>2019-06-07 15:52:27 +0000
commit0b2a011cc4a00ccc2050b84bed54e4adfe21dd99 (patch)
tree5afbfd48c220c6947936f16b97e593be5cc2fafe /init/action_parser.cpp
parent44cabca1ef66e67e66787406eee76bf3cf136b0f (diff)
logd: don't drop user/groups/capabilities/priority in drop_privs()
On Android, unlike POSIX, groups and capabilities are able to be set per thread. This is useless however, since threads are not a security boundary. This change drops the logic to set groups and capabilities per thread and instead leaves all threads running with the initial user and groups. This does still drop some capabilities if they're unneeded due to features being disabled. This also moves the setpriority() call from code into the init script. Test: logd runs with the expected user/groups and with the expected capabilities and priority without any errors Change-Id: Ibb0e529ea1574a2b8ec391a2678504ca9fbe19be
Diffstat (limited to 'init/action_parser.cpp')
0 files changed, 0 insertions, 0 deletions