android_device_mt6753_common/sepolicy/geomagneticd.te

28 lines
918 B
Plaintext
Executable File

# ==============================================
# Policy File of /system/bingeomagneticd Executable File
# ==============================================
# Type Declaration
# ==============================================
type geomagneticd_exec , exec_type, file_type;
type geomagneticd ,domain;
# ==============================================
# MTK Policy Rule
# ==============================================
#permissive geomagneticd;
init_daemon_domain(geomagneticd)
#unconfined_domain(geomagneticd)
# Date : WK14.43
# Operation : Migration
# Purpose : access sensor data and do calibration
allow geomagneticd input_device:chr_file { read ioctl open };
allow geomagneticd input_device:dir { read search open };
allow geomagneticd sysfs:file write;
allow geomagneticd system_data_file:dir { write remove_name add_name };
allow geomagneticd system_data_file:file { rename write setattr create unlink open };