2014-01-10 00:25:36 +01:00
|
|
|
userdebug_or_eng(`
|
2017-03-24 17:30:19 +01:00
|
|
|
typeattribute su coredomain;
|
|
|
|
|
2014-01-10 00:25:36 +01:00
|
|
|
domain_auto_trans(shell, su_exec, su)
|
|
|
|
# Allow dumpstate to call su on userdebug / eng builds to collect
|
|
|
|
# additional information.
|
|
|
|
domain_auto_trans(dumpstate, su_exec, su)
|
2013-12-02 20:18:11 +01:00
|
|
|
|
2015-01-29 21:11:55 +01:00
|
|
|
# Make sure that dumpstate runs the same from the "su" domain as
|
|
|
|
# from the "init" domain.
|
|
|
|
domain_auto_trans(su, dumpstate_exec, dumpstate)
|
|
|
|
|
2016-11-21 08:23:04 +01:00
|
|
|
# Put the incident command into its domain so it is the same on user, userdebug and eng.
|
|
|
|
domain_auto_trans(su, incident_exec, incident)
|
|
|
|
|
2017-11-01 18:17:28 +01:00
|
|
|
# su is also permissive to permit setenforce.
|
2014-01-10 00:25:36 +01:00
|
|
|
permissive su;
|
2014-05-02 23:50:26 +02:00
|
|
|
|
2016-12-08 20:23:34 +01:00
|
|
|
app_domain(su)
|
2014-01-10 00:25:36 +01:00
|
|
|
')
|