blob: 072e8db79404d6914d11a92757d56b26412b6e0b [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
Primiano Tucci1a9f4f72018-01-24 16:07:09 +000016 # Put the perfetto command into its domain so it is the same on user, userdebug and eng.
17 domain_auto_trans(su, perfetto_exec, perfetto)
18
Nick Kralevich35e92392017-11-01 10:17:28 -070019 # su is also permissive to permit setenforce.
Nick Kralevich88ce9512014-01-09 15:25:36 -080020 permissive su;
Sreeram Ramachandranbc320182014-05-02 14:50:26 -070021
dcashman3e8dbf02016-12-08 11:23:34 -080022 app_domain(su)
Janis Danisevskisd3451f82020-07-27 13:06:11 -070023
24 # Do not audit accesses to keystore2 namespace for the su domain.
25 dontaudit su keystore2_key_type:{ keystore2 keystore2_key } *;
26
Nick Kralevich88ce9512014-01-09 15:25:36 -080027')