Go to file
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
build Add Dalvik heap definition for 7" xhdpi devices. 2013-05-06 15:06:20 -07:00
cmds service_manager: reorder permission checks for find 2015-03-05 10:58:40 -08:00
data/etc am 60d31a0f: am 3c648e37: Update comment to use correct GPS file for wearable. 2014-09-19 22:02:37 +00:00
include Restore Region::set(uint32_t, uint32_t) 2014-12-22 21:15:08 +01:00
libs Add missing <unistd.h> include for close. 2015-02-19 16:58:44 -08:00
opengl Fix pointer-to-int and int-to-pointer warnings. 2015-02-23 10:45:27 -08:00
services Merge "Error compiling waitforvsync.cpp" 2015-02-25 23:42:17 +00:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE resolved conflicts for merge of adee6b35 to honeycomb-plus-aosp 2011-01-17 14:17:12 -08:00