[ALPS03872369] Fix GPS SELinux issue

[Detail]
Fix GPS SELinux issue
[Solution]
Fix GPS SELinux issue

MTK-Commit-Id: 1fb50aea5455f9c9f45e9193a8c07c57f0f636f2

Change-Id: I312c3cd8051b2705d74db7797683ba072b22e167
CR-Id: ALPS03872369
Feature: Location Chipset Capability
This commit is contained in:
Chaoran Zhang 2020-01-18 09:44:18 +08:00
parent cee97683c3
commit b1c632cd74
3 changed files with 1 additions and 21 deletions

View File

@ -24,7 +24,7 @@
/data/vendor/agps_supl(/.*)? u:object_r:agpsd_data_file:s0 /data/vendor/agps_supl(/.*)? u:object_r:agpsd_data_file:s0
#/data/mnl_flp(/.*)? u:object_r:mnld_data_file:s0 #/data/mnl_flp(/.*)? u:object_r:mnld_data_file:s0
#/data/mnl_gfc(/.*)? u:object_r:mnld_data_file:s0 #/data/mnl_gfc(/.*)? u:object_r:mnld_data_file:s0
#/data/misc/gps(/.*)? u:object_r:gps_data_file:s0 /data/vendor/gps(/.*)? u:object_r:gps_data_file:s0
/data/anr/SF_RTT(/.*)? u:object_r:sf_rtt_file:s0 /data/anr/SF_RTT(/.*)? u:object_r:sf_rtt_file:s0
#/data/ccci_cfg(/.*)? u:object_r:ccci_cfg_file:s0 #/data/ccci_cfg(/.*)? u:object_r:ccci_cfg_file:s0
#/data/flashless(/.*)? u:object_r:c2k_file:s0 #/data/flashless(/.*)? u:object_r:c2k_file:s0

View File

@ -50,8 +50,6 @@ allow mnld merged_hal_service:unix_dgram_socket sendto;
# Purpose : For access system data # Purpose : For access system data
typeattribute mnld data_between_core_and_vendor_violators; typeattribute mnld data_between_core_and_vendor_violators;
allow mnld system_data_file:dir { write add_name };
allow mnld system_data_file:lnk_file read;
allow mnld bootdevice_block_device:blk_file rw_file_perms; allow mnld bootdevice_block_device:blk_file rw_file_perms;
allow mnld block_device:dir search; allow mnld block_device:dir search;
allow mnld mnld_prop:property_service set; allow mnld mnld_prop:property_service set;

View File

@ -9,10 +9,6 @@ allow system_server irtx_device:chr_file rw_file_perms;
allow system_server qemu_pipe_device:chr_file rw_file_perms; allow system_server qemu_pipe_device:chr_file rw_file_perms;
allow system_server wmtWifi_device:chr_file w_file_perms; allow system_server wmtWifi_device:chr_file w_file_perms;
# Access mtk gps devices.
#allow system_server gps_data_file:file create_file_perms;
#allow system_server gps_data_file:dir rw_dir_perms;
# /proc access. # /proc access.
#allow system_server proc:file w_file_perms; #allow system_server proc:file w_file_perms;
@ -43,20 +39,6 @@ allow system_server zygote:unix_stream_socket { getopt getattr };
# Communicate over a socket created by mnld process. # Communicate over a socket created by mnld process.
# TODO:: MTK need to remove later
not_full_treble(`
allow system_server mnld_data_file:sock_file create_file_perms;
allow system_server mnld_data_file:sock_file rw_file_perms;
')
allow system_server mnld_data_file:dir create_file_perms;
allow system_server mnld_data_file:dir rw_dir_perms;
# TODO:: MTK need to remove later
not_full_treble(`
allow system_server mnld:unix_dgram_socket sendto;
')
# Allow system_server to read /sys/kernel/debug/wakeup_sources # Allow system_server to read /sys/kernel/debug/wakeup_sources
allow system_server debugfs_wakeup_sources:file r_file_perms; allow system_server debugfs_wakeup_sources:file r_file_perms;