blob: 6e7fc37d97e68201bc7a5829fa40efa0cfb47af0 [file] [log] [blame]
Nick Kralevich88ce9512014-01-09 15:25:36 -08001userdebug_or_eng(`
Alex Klyubin6b558dc2017-03-24 09:30:19 -07002 typeattribute su coredomain;
3
Nick Kralevich88ce9512014-01-09 15:25:36 -08004 domain_auto_trans(shell, su_exec, su)
Nick Kralevich88ce9512014-01-09 15:25:36 -08005 # Allow dumpstate to call su on userdebug / eng builds to collect
6 # additional information.
7 domain_auto_trans(dumpstate, su_exec, su)
Stephen Smalleyd99e6d52013-12-02 14:18:11 -05008
Christopher Ferris5ec38c42015-01-29 12:11:55 -08009 # Make sure that dumpstate runs the same from the "su" domain as
10 # from the "init" domain.
11 domain_auto_trans(su, dumpstate_exec, dumpstate)
12
Joe Onorato41f93db2016-11-20 23:23:04 -080013 # Put the incident command into its domain so it is the same on user, userdebug and eng.
14 domain_auto_trans(su, incident_exec, incident)
15
Nick Kralevich35e92392017-11-01 10:17:28 -070016 # su is also permissive to permit setenforce.
Nick Kralevich88ce9512014-01-09 15:25:36 -080017 permissive su;
Sreeram Ramachandranbc320182014-05-02 14:50:26 -070018
dcashman3e8dbf02016-12-08 11:23:34 -080019 app_domain(su)
Nick Kralevich88ce9512014-01-09 15:25:36 -080020')