app.te 883 B

1234567891011121314151617
  1. # Allow apps to read the Test Harness Mode property. This property is used in
  2. # the implementation of ActivityManager.isDeviceInTestHarnessMode()
  3. get_prop(appdomain, test_harness_prop)
  4. neverallow appdomain system_server:udp_socket {
  5. accept append bind create ioctl listen lock name_bind
  6. relabelfrom relabelto setattr shutdown };
  7. # Transition to a non-app domain.
  8. # Exception for the shell and su domains, can transition to runas, etc.
  9. # Exception for crash_dump to allow for app crash reporting.
  10. # Exception for renderscript binaries (/system/bin/bcc, /system/bin/ld.mc)
  11. # to allow renderscript to create privileged executable files.
  12. neverallow { appdomain -shell userdebug_or_eng(`-su') }
  13. { domain -appdomain -crash_dump -rs }:process { transition };
  14. neverallow { appdomain -shell userdebug_or_eng(`-su') }
  15. { domain -appdomain }:process { dyntransition };