su.te 747 B

1234567891011121314151617181920212223
  1. userdebug_or_eng(`
  2. typeattribute su coredomain;
  3. domain_auto_trans(shell, su_exec, su)
  4. # Allow dumpstate to call su on userdebug / eng builds to collect
  5. # additional information.
  6. domain_auto_trans(dumpstate, su_exec, su)
  7. # Make sure that dumpstate runs the same from the "su" domain as
  8. # from the "init" domain.
  9. domain_auto_trans(su, dumpstate_exec, dumpstate)
  10. # Put the incident command into its domain so it is the same on user, userdebug and eng.
  11. domain_auto_trans(su, incident_exec, incident)
  12. # Put the perfetto command into its domain so it is the same on user, userdebug and eng.
  13. domain_auto_trans(su, perfetto_exec, perfetto)
  14. # su is also permissive to permit setenforce.
  15. permissive su;
  16. app_domain(su)
  17. ')