mac_permissions.xml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <policy>
  3. <!--
  4. * A signature is a hex encoded X.509 certificate or a tag defined in
  5. keys.conf and is required for each signer tag. The signature can
  6. either appear as a set of attached cert child tags or as an attribute.
  7. * A signer tag must contain a seinfo tag XOR multiple package stanzas.
  8. * Each signer/package tag is allowed to contain one seinfo tag. This tag
  9. represents additional info that each app can use in setting a SELinux security
  10. context on the eventual process as well as the apps data directory.
  11. * seinfo assignments are made according to the following rules:
  12. - Stanzas with package name refinements will be checked first.
  13. - Stanzas w/o package name refinements will be checked second.
  14. - The "default" seinfo label is automatically applied.
  15. * valid stanzas can take one of the following forms:
  16. // single cert protecting seinfo
  17. <signer signature="@PLATFORM" >
  18. <seinfo value="platform" />
  19. </signer>
  20. // multiple certs protecting seinfo (all contained certs must match)
  21. <signer>
  22. <cert signature="@PLATFORM1"/>
  23. <cert signature="@PLATFORM2"/>
  24. <seinfo value="platform" />
  25. </signer>
  26. // single cert protecting explicitly named app
  27. <signer signature="@PLATFORM" >
  28. <package name="com.android.foo">
  29. <seinfo value="bar" />
  30. </package>
  31. </signer>
  32. // multiple certs protecting explicitly named app (all certs must match)
  33. <signer>
  34. <cert signature="@PLATFORM1"/>
  35. <cert signature="@PLATFORM2"/>
  36. <package name="com.android.foo">
  37. <seinfo value="bar" />
  38. </package>
  39. </signer>
  40. -->
  41. <!-- Platform dev key in AOSP -->
  42. <signer signature="@PLATFORM" >
  43. <seinfo value="platform" />
  44. </signer>
  45. <!-- Media key in AOSP -->
  46. <signer signature="@MEDIA" >
  47. <seinfo value="media" />
  48. </signer>
  49. <signer signature="@NETWORK_STACK" >
  50. <seinfo value="network_stack" />
  51. </signer>
  52. </policy>