Add gnss_device dev_type

This grants default access to the new GNSS subsystem for Linux to the
GNSS HAL default implementation. The GNSS subsystem creates character
devices similar to ttys but without much unneeded complexity. The GNSS
device class is specific to location use cases.

Bug: 151670529
Change-Id: I03b27aa5bbfdf600eb830de1c8748aacb9bf4663
This commit is contained in:
Alistair Delva 2020-03-16 15:35:49 -07:00
parent 6862377b84
commit 1a3ee382ec
4 changed files with 5 additions and 0 deletions

View file

@ -45,6 +45,7 @@
file_integrity_service
fwk_automotive_display_hwservice
gmscore_app
gnss_device
hal_can_bus_hwservice
hal_can_controller_hwservice
hal_identity_service

View file

@ -95,6 +95,7 @@
/dev/cgroup_info(/.*)? u:object_r:cgroup_rc_file:s0
/dev/fscklogs(/.*)? u:object_r:fscklogs:s0
/dev/fuse u:object_r:fuse_device:s0
/dev/gnss[0-9]+ u:object_r:gnss_device:s0
/dev/graphics(/.*)? u:object_r:graphics_device:s0
/dev/hw_random u:object_r:hw_random_device:s0
/dev/hwbinder u:object_r:hwbinder_device:s0

View file

@ -52,6 +52,7 @@ type tun_device, dev_type, mlstrustedobject;
type usbaccessory_device, dev_type, mlstrustedobject;
type usb_device, dev_type, mlstrustedobject;
type usb_serial_device, dev_type;
type gnss_device, dev_type;
type properties_device, dev_type;
type properties_serial, dev_type;
type property_info, dev_type;

View file

@ -3,3 +3,5 @@ hal_server_domain(hal_gnss_default, hal_gnss)
type hal_gnss_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(hal_gnss_default)
allow hal_gnss_default gnss_device:chr_file rw_file_perms;