You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.1 KiB
30 lines
1.1 KiB
# ==============================================
|
|
# MTK Policy Rule
|
|
# ==============================================
|
|
|
|
#cmddumper access external modem ttySDIO2
|
|
allow cmddumper ttySDIO_device:chr_file { read write ioctl open };
|
|
|
|
# for modem logging sdcard access
|
|
allow cmddumper sdcard_type:dir create_dir_perms;
|
|
allow cmddumper sdcard_type:file create_file_perms;
|
|
|
|
# cmddumper access on /data/mdlog
|
|
allow cmddumper mdlog_data_file:fifo_file create_file_perms;
|
|
allow cmddumper mdlog_data_file:file create_file_perms;
|
|
allow cmddumper mdlog_data_file:dir { create_dir_perms relabelto };
|
|
|
|
# purpose: allow cmddumper to access storage in N version
|
|
allow cmddumper media_rw_data_file:file { create_file_perms };
|
|
allow cmddumper media_rw_data_file:dir { create_dir_perms };
|
|
|
|
# purpose: access plat_file_contexts
|
|
allow cmddumper file_contexts_file:file { read getattr open };
|
|
|
|
# purpose: access /sys/devices/virtual/BOOT/BOOT/boot/boot_mode
|
|
allow cmddumper sysfs_boot_mode:file { read open };
|
|
|
|
# Android P migration
|
|
allow cmddumper tmpfs:lnk_file read;
|
|
allow cmddumper vmodem_device:chr_file { read write ioctl open };
|