device_google_gs101/whitechapel/vendor/google/lhd.te
Robin Peng 5009efa776 Move slider-sepolicy into gs101-sepolicy
from: 71e609c24c97fc8d44843af30527cbeb90d5dcdf

Bug: 167996145
Change-Id: Ie00e7e0983a3ca695bbd5140c929d07a80144301
2021-03-06 16:15:39 +08:00

23 lines
693 B
Text

type lhd, domain;
type lhd_exec, vendor_file_type, exec_type, file_type;
init_daemon_domain(lhd)
# Allow lhd access PixelLogger unix socket in debug build only
userdebug_or_eng(`
typeattribute lhd mlstrustedsubject;
allow lhd logger_app:unix_stream_socket connectto;
')
# Allow lhd access data vendor gps files
allow lhd vendor_gps_file:dir create_dir_perms;
allow lhd vendor_gps_file:file create_file_perms;
allow lhd vendor_gps_file:fifo_file create_file_perms;
# Allow lhd to obtain wakelock
wakelock_use(lhd)
# Allow lhd access /dev/bbd_control file
allow lhd vendor_gnss_device:chr_file rw_file_perms;
# Allow lhd access nstandby gpio
allow lhd sysfs_gps:file rw_file_perms;