blob: 26d0c8f3780c6d5c66b054bfb91a457b21f1075f [file] [log] [blame]
Nick Kralevich4be31902014-07-01 13:59:50 -07001# Input selectors:
Stephen Smalley2dd4e512012-01-04 12:33:27 -05002# isSystemServer (boolean)
3# user (string)
4# seinfo (string)
5# name (string)
Stephen Smalley6139de52014-02-19 10:54:41 -05006# path (string)
Stephen Smalleydd31ddf2012-07-27 17:08:21 -04007# sebool (string)
Stephen Smalley2dd4e512012-01-04 12:33:27 -05008# isSystemServer=true can only be used once.
Stephen Smalleydd31ddf2012-07-27 17:08:21 -04009# An unspecified isSystemServer defaults to false.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050010# An unspecified string selector will match any value.
11# A user string selector that ends in * will perform a prefix match.
Stephen Smalley3ac1d262012-09-24 10:16:03 -040012# user=_app will match any regular app UID.
13# user=_isolated will match any isolated service UID.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050014# All specified input selectors in an entry must match (i.e. logical AND).
15# Matching is case-insensitive.
Nick Kralevich4be31902014-07-01 13:59:50 -070016#
Stephen Smalley2dd4e512012-01-04 12:33:27 -050017# Precedence rules:
18# (1) isSystemServer=true before isSystemServer=false.
19# (2) Specified user= string before unspecified user= string.
20# (3) Fixed user= string before user= prefix (i.e. ending in *).
Nick Kralevich4be31902014-07-01 13:59:50 -070021# (4) Longer user= prefix before shorter user= prefix.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050022# (5) Specified seinfo= string before unspecified seinfo= string.
23# (6) Specified name= string before unspecified name= string.
Stephen Smalley6139de52014-02-19 10:54:41 -050024# (7) Specified path= string before unspecified path= string.
25# (8) Specified sebool= string before unspecified sebool= string.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050026#
27# Outputs:
28# domain (string)
29# type (string)
Stephen Smalley38084142012-11-28 10:46:18 -050030# levelFrom (string; one of none, all, app, or user)
Stephen Smalley2dd4e512012-01-04 12:33:27 -050031# level (string)
32# Only entries that specify domain= will be used for app process labeling.
33# Only entries that specify type= will be used for app directory labeling.
Stephen Smalley38084142012-11-28 10:46:18 -050034# levelFrom=user is only supported for _app or _isolated UIDs.
35# levelFrom=app or levelFrom=all is only supported for _app UIDs.
Nick Kralevich4be31902014-07-01 13:59:50 -070036# level may be used to specify a fixed level for any UID.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050037#
Alex Klyubin1fdee112013-09-13 15:59:04 -070038isSystemServer=true domain=system_server
Stephen Smalley91a4f8d2014-05-07 13:10:02 -040039user=system domain=system_app type=system_app_data_file
Stephen Smalley61c80d52012-11-16 09:06:47 -050040user=bluetooth domain=bluetooth type=bluetooth_data_file
Stephen Smalley2dd4e512012-01-04 12:33:27 -050041user=nfc domain=nfc type=nfc_data_file
42user=radio domain=radio type=radio_data_file
Torne (Richard Coles)9786af22014-05-23 11:01:58 +010043user=shared_relro domain=shared_relro
Stephen Smalley6d8fa692014-03-27 11:48:32 -040044user=shell domain=shell type=shell_data_file
Joshua Brindlef26d8132012-09-25 18:52:54 -040045user=_isolated domain=isolated_app
Stephen Smalley9ba844f2014-04-04 09:09:25 -040046user=_app seinfo=platform domain=platform_app type=app_data_file
47user=_app domain=untrusted_app type=app_data_file