2012-01-04 18:33:27 +01:00
|
|
|
######################################
|
|
|
|
# Attribute declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
# All types used for devices.
|
2015-09-25 03:10:54 +02:00
|
|
|
# On change, update CHECK_FC_ASSERT_ATTRS
|
|
|
|
# in tools/checkfc.c
|
2012-01-04 18:33:27 +01:00
|
|
|
attribute dev_type;
|
|
|
|
|
|
|
|
# All types used for processes.
|
|
|
|
attribute domain;
|
|
|
|
|
2015-11-03 18:54:39 +01:00
|
|
|
# Temporary attribute used for migrating permissions out of domain.
|
|
|
|
# Motivation: Domain is overly permissive. Start removing permissions
|
|
|
|
# from domain and assign them to the domain_deprecated attribute.
|
|
|
|
# Domain_deprecated and domain can initially be assigned to all
|
|
|
|
# domains. The goal is to not assign domain_deprecated to new domains
|
|
|
|
# and to start removing domain_deprecated where it's not required or
|
|
|
|
# reassigning the appropriate permissions to the inheriting domain
|
|
|
|
# when necessary.
|
|
|
|
attribute domain_deprecated;
|
|
|
|
|
2012-01-04 18:33:27 +01:00
|
|
|
# All types used for filesystems.
|
2015-09-25 03:10:54 +02:00
|
|
|
# On change, update CHECK_FC_ASSERT_ATTRS
|
|
|
|
# definition in tools/checkfc.c.
|
2012-01-04 18:33:27 +01:00
|
|
|
attribute fs_type;
|
|
|
|
|
2014-05-30 14:49:51 +02:00
|
|
|
# All types used for context= mounts.
|
|
|
|
attribute contextmount_type;
|
|
|
|
|
2012-01-04 18:33:27 +01:00
|
|
|
# All types used for files that can exist on a labeled fs.
|
|
|
|
# Do not use for pseudo file types.
|
2015-09-25 03:10:54 +02:00
|
|
|
# On change, update CHECK_FC_ASSERT_ATTRS
|
|
|
|
# definition in tools/checkfc.c.
|
2012-01-04 18:33:27 +01:00
|
|
|
attribute file_type;
|
|
|
|
|
|
|
|
# All types used for domain entry points.
|
|
|
|
attribute exec_type;
|
|
|
|
|
|
|
|
# All types used for /data files.
|
|
|
|
attribute data_file_type;
|
|
|
|
|
|
|
|
# All types use for sysfs files.
|
|
|
|
attribute sysfs_type;
|
|
|
|
|
2015-12-08 02:02:31 +01:00
|
|
|
# All types use for debugfs files.
|
|
|
|
attribute debugfs_type;
|
|
|
|
|
2013-03-07 01:26:36 +01:00
|
|
|
# Attribute used for all sdcards
|
|
|
|
attribute sdcard_type;
|
|
|
|
|
2012-01-04 18:33:27 +01:00
|
|
|
# All types used for nodes/hosts.
|
|
|
|
attribute node_type;
|
|
|
|
|
|
|
|
# All types used for network interfaces.
|
|
|
|
attribute netif_type;
|
|
|
|
|
|
|
|
# All types used for network ports.
|
|
|
|
attribute port_type;
|
|
|
|
|
2012-04-04 16:11:16 +02:00
|
|
|
# All types used for property service
|
2015-09-25 03:10:54 +02:00
|
|
|
# On change, update CHECK_PC_ASSERT_ATTRS
|
|
|
|
# definition in tools/checkfc.c.
|
2012-04-04 16:11:16 +02:00
|
|
|
attribute property_type;
|
|
|
|
|
2015-12-08 23:45:50 +01:00
|
|
|
# All properties defined in core SELinux policy. Should not be
|
|
|
|
# used by device specific properties
|
|
|
|
attribute core_property_type;
|
|
|
|
|
2016-04-15 20:10:06 +02:00
|
|
|
# All properties used to configure log filtering.
|
|
|
|
attribute log_property_type;
|
|
|
|
|
2015-04-09 00:12:24 +02:00
|
|
|
# All service_manager types created by system_server
|
2015-04-03 01:50:08 +02:00
|
|
|
attribute system_server_service;
|
|
|
|
|
|
|
|
# services which should be available to all but isolated apps
|
|
|
|
attribute app_api_service;
|
|
|
|
|
|
|
|
# services which export only system_api
|
|
|
|
attribute system_api_service;
|
2014-12-17 00:45:26 +01:00
|
|
|
|
2014-06-06 00:52:02 +02:00
|
|
|
# All types used for services managed by service_manager.
|
2015-09-25 03:10:54 +02:00
|
|
|
# On change, update CHECK_SC_ASSERT_ATTRS
|
|
|
|
# definition in tools/checkfc.c.
|
2014-06-06 00:52:02 +02:00
|
|
|
attribute service_manager_type;
|
|
|
|
|
2012-01-04 18:33:27 +01:00
|
|
|
# All domains that can override MLS restrictions.
|
|
|
|
# i.e. processes that can read up and write down.
|
|
|
|
attribute mlstrustedsubject;
|
|
|
|
|
|
|
|
# All types that can override MLS restrictions.
|
|
|
|
# i.e. files that can be read by lower and written by higher
|
|
|
|
attribute mlstrustedobject;
|
|
|
|
|
|
|
|
# All domains used for apps.
|
|
|
|
attribute appdomain;
|
|
|
|
|
|
|
|
# All domains used for apps with network access.
|
|
|
|
attribute netdomain;
|
|
|
|
|
|
|
|
# All domains used for apps with bluetooth access.
|
|
|
|
attribute bluetoothdomain;
|
|
|
|
|
|
|
|
# All domains used for binder service domains.
|
|
|
|
attribute binderservicedomain;
|
2016-04-22 22:23:36 +02:00
|
|
|
|
|
|
|
# All domains that access the boot_control HAL. The permissions the HAL
|
|
|
|
# requires are specific to the implementation provided in each device, but
|
|
|
|
# common daemons need to be aware of those when calling into the HAL.
|
|
|
|
attribute boot_control_hal;
|
2016-08-04 05:31:37 +02:00
|
|
|
|
|
|
|
# update_engine related domains that need to apply an update and run
|
|
|
|
# postinstall. This includes the background daemon and the sideload tool from
|
|
|
|
# recovery for A/B devices.
|
|
|
|
attribute update_engine_common;
|
2016-11-15 19:05:55 +01:00
|
|
|
|
|
|
|
# HALs
|
2016-12-13 21:17:09 +01:00
|
|
|
attribute hal_audio;
|
2016-10-12 23:49:56 +02:00
|
|
|
attribute hal_bluetooth;
|
2016-12-01 18:39:10 +01:00
|
|
|
attribute hal_dumpstate;
|
2016-10-20 20:20:25 +02:00
|
|
|
attribute hal_gatekeeper;
|
2016-12-09 17:53:42 +01:00
|
|
|
attribute hal_gnss;
|
2016-12-13 21:17:09 +01:00
|
|
|
attribute hal_graphics_allocator;
|
|
|
|
attribute hal_graphics_composer;
|
2016-12-16 22:20:25 +01:00
|
|
|
attribute hal_health;
|
2016-12-06 01:20:44 +01:00
|
|
|
attribute hal_ir;
|
2016-12-13 21:17:09 +01:00
|
|
|
attribute hal_light;
|
|
|
|
attribute hal_memtrack;
|
|
|
|
attribute hal_nfc;
|
|
|
|
attribute hal_power;
|
2016-11-29 21:26:51 +01:00
|
|
|
attribute hal_sensors;
|
2016-12-08 02:43:46 +01:00
|
|
|
attribute hal_telephony;
|
2016-12-13 21:17:09 +01:00
|
|
|
attribute hal_thermal;
|
|
|
|
attribute hal_vibrator;
|
|
|
|
attribute hal_vr;
|
|
|
|
attribute hal_wifi;
|
2016-11-29 22:17:49 +01:00
|
|
|
attribute hal_contexthub;
|