platform_frameworks_native/cmds/servicemanager
Steven Moreland 905e2e8534 servicemanager: restrict service name characters
This is in order to, in the future, potentially have special policy
like:
vendor$vendor_service u:object_r:...:s0
universal$hal_foo_service u:object_r:...:s0

Currently, there are no special characters that could be used for this
purpose.

How safe is this? In all context files in our internal tree, only the
following characters are used in service names:
-._12aAbBcCdDeEfFgGhHiIjkKlmMnNoOpPqQrsStTuUvwWxyz

'.' appears everywhere to mean '\.'.

Test: servicemanager_test
Bug: 136027762
Change-Id: Idd6698a68bbbe825dd5a25d92baf81fae473ea2a
2019-07-17 11:05:45 -07:00
..
Access.cpp servicemanager: use libbinder 2019-07-09 01:54:25 +00:00
Access.h servicemanager: use libbinder 2019-07-09 01:54:25 +00:00
Android.bp servicemanager: use libbinder 2019-07-09 01:54:25 +00:00
main.cpp Init ProcessState w/ initWithDriver. 2019-07-10 17:54:15 -07:00
ServiceManager.cpp servicemanager: restrict service name characters 2019-07-17 11:05:45 -07:00
ServiceManager.h servicemanager: use libbinder 2019-07-09 01:54:25 +00:00
servicemanager.rc Add hook into thermalservice 2018-10-26 23:22:55 +00:00
TEST_MAPPING servicemanager: TEST_MAPPING += libbinder tests 2019-07-11 10:58:46 -07:00
test_sm.cpp servicemanager: restrict service name characters 2019-07-17 11:05:45 -07:00
vndservicemanager.rc servicemanager: Mark vndservicemanager as shutdown critical 2017-07-11 09:56:21 -07:00