1. Mark polices which accessing proc/sysfs file system 2. Add violator attribute to modules violate vendor/system rule. MTK-Commit-Id: 3954cad7a1428cda694d8428c2235a78aa6e7cc8 Change-Id: I401ae5b87eb9a03f324bef83c6678149606b15a8 CR-Id: ALPS03825066 Feature: [Android Default] SELinux, SEAndroid, and SE-MTK
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
# ==============================================
|
|
# Policy File of /system/bin/fuelgauged_static Executable File
|
|
|
|
# ==============================================
|
|
# Android Policy Rule
|
|
# ==============================================
|
|
|
|
# ==============================================
|
|
# NSA Policy Rule
|
|
# ==============================================
|
|
|
|
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
|
|
# Data : WK14.43
|
|
# Operation : Migration
|
|
# Purpose : For meta tool calibration
|
|
allow fuelgauged_static mtk-adc-cali_device:chr_file rw_file_perms;
|
|
|
|
# Data : WK14.43
|
|
# Operation : Migration
|
|
# Purpose : For fg.log can be printed with kernel log
|
|
allow fuelgauged_static kmsg_device:chr_file w_file_perms;
|
|
|
|
# Data : WK16.21
|
|
# Operation : New Feature
|
|
# Purpose : For fg daemon can do nvram r/w to save car_tune_value
|
|
typeattribute fuelgauged_static data_between_core_and_vendor_violators;
|
|
allow fuelgauged_static nvdata_file:dir rw_dir_perms;
|
|
allow fuelgauged_static nvdata_file:file {rw_file_perms create_file_perms};
|
|
allow fuelgauged_static nvram_data_file:lnk_file rw_file_perms;
|
|
allow fuelgauged_static nvdata_file:lnk_file rw_file_perms;
|
|
|