[ALPS04088869] GPS: Add selinux allow for mnld to access gpsdl devices
Allow mnld to access MT6885 new GPS device drivers, which are: /dev/gpsdl0 and /dev/gpsdl1. MTK-Commit-Id: 11b8302cd93d085be0e56f7e7645a1e6fd7b5980 Change-Id: I49f18a7ff01c6c4c700f9069920994dd5e62a624 Signed-off-by: Hua Fu <hua.fu@mediatek.com> CR-Id: ALPS04088869 Feature: Location Chipset Capability
This commit is contained in:
parent
94de77a5fe
commit
899c01d964
@ -15,6 +15,7 @@ type fw_log_bt_device, dev_type;
|
||||
type stpant_device, dev_type;
|
||||
type fm_device, dev_type;
|
||||
type stpgps_device, dev_type;
|
||||
type gpsdl_device, dev_type;
|
||||
type fw_log_gps_device, dev_type;
|
||||
type fw_log_wmt_device, dev_type;
|
||||
type fw_log_wifi_device, dev_type;
|
||||
|
@ -301,6 +301,10 @@
|
||||
/dev/fw_log_bt u:object_r:fw_log_bt_device:s0
|
||||
/dev/stpgps u:object_r:mnld_device:s0
|
||||
/dev/stpgps(/.*)? u:object_r:stpgps_device:s0
|
||||
/dev/gpsdl0 u:object_r:mnld_device:s0
|
||||
/dev/gpsdl0(/.*)? u:object_r:gpsdl_device:s0
|
||||
/dev/gpsdl1 u:object_r:mnld_device:s0
|
||||
/dev/gpsdl1(/.*)? u:object_r:gpsdl_device:s0
|
||||
/dev/stpwmt(/.*)? u:object_r:stpwmt_device:s0
|
||||
/dev/sw_sync(/.*)? u:object_r:sw_sync_device:s0
|
||||
/dev/tgt(/.*)? u:object_r:tgt_device:s0
|
||||
|
@ -55,6 +55,7 @@ allow mnld property_socket:sock_file write;
|
||||
allow mnld mdlog_device:chr_file { read write };
|
||||
allow mnld self:capability { fsetid };
|
||||
allow mnld stpbt_device:chr_file { read write };
|
||||
allow mnld gpsdl_device:chr_file { read write };
|
||||
allow mnld ttyGS_device:chr_file { read write };
|
||||
# Purpose : For file system operations
|
||||
allow mnld sdcard_type:dir search;
|
||||
|
Loading…
x
Reference in New Issue
Block a user