blob: 0d9a2b46f91ccbfb0fcf442c1e42e8019e9baace [file] [log] [blame]
William Hester5f486c72019-01-15 13:39:30 -08001# Allow apps to read the Test Harness Mode property. This property is used in
2# the implementation of ActivityManager.isDeviceInTestHarnessMode()
3get_prop(appdomain, test_harness_prop)
4
Nathan Haroldee268642017-12-14 18:20:30 -08005neverallow appdomain system_server:udp_socket {
Nathan Harold252b0152018-03-27 06:34:54 -07006 accept append bind create ioctl listen lock name_bind
7 relabelfrom relabelto setattr shutdown };
Nick Kralevich1e5021c2018-11-28 17:50:24 -08008
9# Transition to a non-app domain.
10# Exception for the shell and su domains, can transition to runas, etc.
Nick Kralevich0eb0a162018-12-12 09:06:05 -080011# Exception for crash_dump to allow for app crash reporting.
12# Exception for renderscript binaries (/system/bin/bcc, /system/bin/ld.mc)
13# to allow renderscript to create privileged executable files.
14neverallow { appdomain -shell userdebug_or_eng(`-su') }
15 { domain -appdomain -crash_dump -rs }:process { transition };
16neverallow { appdomain -shell userdebug_or_eng(`-su') }
17 { domain -appdomain }:process { dyntransition };