[Detail] 1. Add selinux right for MTKLogger to able to connect Bluetooth via socket 2. Add selinux right for Bluetooth to set debug property for MTKLogger state check MTK-Commit-Id: db60d64b8ed91dfee48588fb5a32f2bedc2ba604 Change-Id: I31c5abb153c2bcd44a2dafca0f1f669e7310c3fe CR-Id: ALPS03866092 Feature: BT AOSP
37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
# ==============================================
|
|
# MTK Bluetooth Policy Rule
|
|
# Add permission only for platform system
|
|
# ==============================================
|
|
|
|
# Date: 2018/02/02
|
|
# Add permission for different storage types logging
|
|
|
|
# permission in storage for legacy android M version
|
|
allow bluetooth mnt_user_file:dir search;
|
|
allow bluetooth mnt_user_file:lnk_file read;
|
|
allow bluetooth storage_file:lnk_file read;
|
|
|
|
# purpose: allow access storage for legacy N version
|
|
allow bluetooth media_rw_data_file:file { create_file_perms };
|
|
allow bluetooth media_rw_data_file:dir { create_dir_perms };
|
|
|
|
# permission for storage link access in vzw Project
|
|
allow bluetooth mnt_media_rw_file:dir search;
|
|
|
|
# for logging sdcard access
|
|
allow bluetooth sdcard_type:dir { create_dir_perms };
|
|
allow bluetooth sdcard_type:file { create_file_perms };
|
|
allow bluetooth sdcardfs:dir { create_dir_perms };
|
|
allow bluetooth sdcardfs:file { create_file_perms };
|
|
allow bluetooth rootfs:lnk_file getattr;
|
|
|
|
allow bluetooth fuse:dir { create_dir_perms };
|
|
allow bluetooth fuse:file { create_file_perms };
|
|
|
|
# permission for storage access storage
|
|
allow bluetooth vfat:dir create_dir_perms;
|
|
allow bluetooth vfat:file create_file_perms;
|
|
allow bluetooth storage_file:dir { create_dir_perms };
|
|
allow bluetooth tmpfs:lnk_file read;
|
|
allow bluetooth storage_file:file { create_file_perms };
|