blob: 491c9fd905946066d4e7c75230c895f08c54d3d0 [file] [log] [blame]
Stephen Smalley2dd4e512012-01-04 12:33:27 -05001# Input selectors:
2# isSystemServer (boolean)
3# user (string)
4# seinfo (string)
5# name (string)
Stephen Smalleydd31ddf2012-07-27 17:08:21 -04006# sebool (string)
Stephen Smalley2dd4e512012-01-04 12:33:27 -05007# isSystemServer=true can only be used once.
Stephen Smalleydd31ddf2012-07-27 17:08:21 -04008# An unspecified isSystemServer defaults to false.
Stephen Smalley2dd4e512012-01-04 12:33:27 -05009# An unspecified string selector will match any value.
10# A user string selector that ends in * will perform a prefix match.
Stephen Smalley3ac1d262012-09-24 10:16:03 -040011# user=_app will match any regular app UID.
12# user=_isolated will match any isolated service UID.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050013# All specified input selectors in an entry must match (i.e. logical AND).
14# Matching is case-insensitive.
15# Precedence rules:
16# (1) isSystemServer=true before isSystemServer=false.
17# (2) Specified user= string before unspecified user= string.
18# (3) Fixed user= string before user= prefix (i.e. ending in *).
19# (4) Longer user= prefix before shorter user= prefix.
20# (5) Specified seinfo= string before unspecified seinfo= string.
21# (6) Specified name= string before unspecified name= string.
Stephen Smalleydd31ddf2012-07-27 17:08:21 -040022# (7) Specified sebool= string before unspecified sebool= string.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050023#
24# Outputs:
25# domain (string)
26# type (string)
Stephen Smalley38084142012-11-28 10:46:18 -050027# levelFrom (string; one of none, all, app, or user)
Stephen Smalley2dd4e512012-01-04 12:33:27 -050028# level (string)
29# Only entries that specify domain= will be used for app process labeling.
30# Only entries that specify type= will be used for app directory labeling.
Stephen Smalley38084142012-11-28 10:46:18 -050031# levelFrom=user is only supported for _app or _isolated UIDs.
32# levelFrom=app or levelFrom=all is only supported for _app UIDs.
Stephen Smalley2dd4e512012-01-04 12:33:27 -050033# level may be used to specify a fixed level for any UID.
34#
35isSystemServer=true domain=system
36user=system domain=system_app type=system_data_file
Stephen Smalley61c80d52012-11-16 09:06:47 -050037user=bluetooth domain=bluetooth type=bluetooth_data_file
Stephen Smalley2dd4e512012-01-04 12:33:27 -050038user=nfc domain=nfc type=nfc_data_file
39user=radio domain=radio type=radio_data_file
Geremy Condra8abf01a2013-03-27 15:14:48 -070040user=_app domain=untrusted_app type=app_data_file levelFrom=none
Stephen Smalley3ac1d262012-09-24 10:16:03 -040041user=_app seinfo=platform domain=platform_app type=platform_app_data_file
42user=_app seinfo=shared domain=shared_app type=platform_app_data_file
43user=_app seinfo=media domain=media_app type=platform_app_data_file
44user=_app seinfo=release domain=release_app type=platform_app_data_file
Joshua Brindlef26d8132012-09-25 18:52:54 -040045user=_isolated domain=isolated_app