blob: fa8ffcfbef2cec54c695c41ce2a7e6a91ff1a245 [file] [log] [blame]
rpcraigb19665c2012-07-30 09:33:03 -04001<?xml version="1.0" encoding="utf-8"?>
2<policy>
3
Stephen Smalleycc7b72e2014-03-12 09:40:43 -04004<!--
5
6 * A signature is a hex encoded X.509 certificate or a tag defined in
Robert Craig008d7f12015-08-31 07:29:01 -04007 keys.conf and is required for each signer tag. The signature can
8 either appear as a set of attached cert child tags or as an attribute.
9 * A signer tag must contain a seinfo tag XOR multiple package stanzas.
10 * Each signer/package tag is allowed to contain one seinfo tag. This tag
Stephen Smalleycc7b72e2014-03-12 09:40:43 -040011 represents additional info that each app can use in setting a SELinux security
Robert Craig008d7f12015-08-31 07:29:01 -040012 context on the eventual process as well as the apps data directory.
13 * seinfo assignments are made according to the following rules:
14 - Stanzas with package name refinements will be checked first.
15 - Stanzas w/o package name refinements will be checked second.
16 - The "default" seinfo label is automatically applied.
17
18 * valid stanzas can take one of the following forms:
19
20 // single cert protecting seinfo
21 <signer signature="@PLATFORM" >
22 <seinfo value="platform" />
23 </signer>
24
25 // multiple certs protecting seinfo (all contained certs must match)
26 <signer>
27 <cert signature="@PLATFORM1"/>
28 <cert signature="@PLATFORM2"/>
29 <seinfo value="platform" />
30 </signer>
31
32 // single cert protecting explicitly named app
33 <signer signature="@PLATFORM" >
34 <package name="com.android.foo">
35 <seinfo value="bar" />
36 </package>
37 </signer>
38
39 // multiple certs protecting explicitly named app (all certs must match)
40 <signer>
41 <cert signature="@PLATFORM1"/>
42 <cert signature="@PLATFORM2"/>
43 <package name="com.android.foo">
44 <seinfo value="bar" />
45 </package>
46 </signer>
Stephen Smalleycc7b72e2014-03-12 09:40:43 -040047-->
48
Robert Craig65911e82013-03-28 06:48:27 -040049 <!-- Platform dev key in AOSP -->
Geremy Condracd4104e2013-03-26 18:19:12 +000050 <signer signature="@PLATFORM" >
rpcraigb19665c2012-07-30 09:33:03 -040051 <seinfo value="platform" />
52 </signer>
53
Nikita Ioffee2da6332022-02-21 17:55:59 +000054 <!-- Sdk Sandbox key -->
55 <signer signature="@SDK_SANDBOX" >
56 <seinfo value="sdk_sandbox" />
RafayKamran6ea56f62021-11-03 15:56:30 +000057 </signer>
58
Roopa Sattirajuf227d0d2022-03-28 14:39:42 -070059 <!-- Bluetooth key in AOSP -->
60 <signer signature="@BLUETOOTH" >
61 <seinfo value="bluetooth" />
62 </signer>
63
Jerry Zhangf921dd92016-09-22 11:07:50 -070064 <!-- Media key in AOSP -->
65 <signer signature="@MEDIA" >
66 <seinfo value="media" />
67 </signer>
68
Remi NGUYEN VAN3b006d92019-02-13 00:51:25 +090069 <signer signature="@NETWORK_STACK" >
70 <seinfo value="network_stack" />
71 </signer>
Roshan Pius1e745f52023-11-03 17:39:43 -070072
73 <!-- NFC key in AOSP -->
74 <signer signature="@NFC" >
75 <seinfo value="nfc" />
76 </signer>
rpcraigb19665c2012-07-30 09:33:03 -040077</policy>