2019-01-15 22:39:30 +01:00
|
|
|
# Allow apps to read the Test Harness Mode property. This property is used in
|
|
|
|
# the implementation of ActivityManager.isDeviceInTestHarnessMode()
|
|
|
|
get_prop(appdomain, test_harness_prop)
|
|
|
|
|
2017-12-15 03:20:30 +01:00
|
|
|
neverallow appdomain system_server:udp_socket {
|
2018-03-27 15:34:54 +02:00
|
|
|
accept append bind create ioctl listen lock name_bind
|
|
|
|
relabelfrom relabelto setattr shutdown };
|
2018-11-29 02:50:24 +01:00
|
|
|
|
|
|
|
# Transition to a non-app domain.
|
|
|
|
# Exception for the shell and su domains, can transition to runas, etc.
|
2018-12-12 18:06:05 +01:00
|
|
|
# Exception for crash_dump to allow for app crash reporting.
|
|
|
|
# Exception for renderscript binaries (/system/bin/bcc, /system/bin/ld.mc)
|
|
|
|
# to allow renderscript to create privileged executable files.
|
|
|
|
neverallow { appdomain -shell userdebug_or_eng(`-su') }
|
|
|
|
{ domain -appdomain -crash_dump -rs }:process { transition };
|
|
|
|
neverallow { appdomain -shell userdebug_or_eng(`-su') }
|
|
|
|
{ domain -appdomain }:process { dyntransition };
|