replicant-frameworks_native/cmds
Nick Kralevich b27bbd18bb service_manager: reorder permission checks for find
Reorder the find permission checks. This avoids generating misleading
SELinux denials when a service doesn't exist, or when a service is
prohibited to isolated apps.

The original reason for structuring the code this way is explained
in https://android-review.googlesource.com/#/c/100530/4/cmds/servicemanager/service_manager.c@172
The concern at the time was to avoid leaking a situation where
a caller could probe for the existance of a service. This turns out
to be unnecessary. The same return value is used for both a
permission denied and a service not found. The only side effect
is the generation of an SELinux audit log, which likely won't be
accessible to the calling application.

Change-Id: I9760e1821ed16102fa5f9bec07f8c34944565be9
2015-03-05 10:58:40 -08:00
..
atrace Move atrace from the obsolete bzero to memset. 2015-01-25 08:35:20 -08:00
bugreport Refactor of the bugreport code. 2015-01-23 13:40:56 -08:00
dumpstate Merge "Add timeout for dump_file." 2015-02-26 18:35:02 +00:00
dumpsys add dumpsys -l to list available services 2013-06-13 16:32:26 -07:00
flatland GLConsumer: Stop using default constructor params 2014-06-24 13:09:19 -07:00
installd Add missing <sys/file.h> include for flock. 2015-02-16 10:44:22 -08:00
ip-up-vpn Include the VPN server IP address in the VPN state file. 2014-09-19 13:27:56 +09:00
rawbu Add a note about emulated sdcard in rawbu usage dump 2013-06-14 10:43:39 -07:00
service libutils clean-up 2013-05-07 18:28:11 -07:00
servicemanager service_manager: reorder permission checks for find 2015-03-05 10:58:40 -08:00