[Detail] enable PRODUCT_COMPATIBLE_PROPERTY_OVERRIDE = true, will cause build error [Solution] Mark rules that violate AOSP neverallow rules MTK-Commit-Id: c850c6f1fcb8de76235ea2be51becb7a2ccc6190 Change-Id: Ib9a80f4495d6db588133f929c9ea70e7215ad2aa CR-Id: ALPS03881723 Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
36 lines
1.2 KiB
Plaintext
36 lines
1.2 KiB
Plaintext
# ==============================================
|
|
# Policy File of /system/bin/muxreport Executable File
|
|
|
|
# ==============================================
|
|
# Type Declaration
|
|
# ==============================================
|
|
type muxreport_exec , exec_type, file_type, vendor_file_type;
|
|
type muxreport ,domain;
|
|
|
|
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
init_daemon_domain(muxreport)
|
|
|
|
# Capabilities assigned for muxreport
|
|
#allow muxreport self:capability dac_override;
|
|
|
|
# Property service
|
|
# allow set muxreport control properties
|
|
set_prop(muxreport, ril_mux_report_case_prop)
|
|
|
|
# Allow read/write to devices/files
|
|
allow muxreport ccci_device:chr_file { rw_file_perms };
|
|
allow muxreport devpts:chr_file { rw_file_perms };
|
|
allow muxreport eemcs_device:chr_file { rw_file_perms };
|
|
allow muxreport emd_device:chr_file { rw_file_perms };
|
|
# Allow read to sys/kernel/ccci/* files
|
|
allow muxreport sysfs_ccci:dir search;
|
|
allow muxreport sysfs_ccci:file r_file_perms;
|
|
#set_prop(muxreport, radio_prop)
|
|
|
|
# Date : WK18.16
|
|
# Operation: P migration
|
|
# Purpose: Allow muxreport to get tel_switch_prop
|
|
get_prop(muxreport, tel_switch_prop)
|