sepolicy: allow bluetooth hal to access persist/bluetooth data

allow bluetooth hal to access(read, write, create) persist bluetooth
data.

Change-Id: Idee1f22f12c9852532325577efd534a731985d45
This commit is contained in:
Nitin Shivpure 2019-06-10 12:52:52 +05:30
parent fdd65f7f77
commit ebc9ef5c11
2 changed files with 4 additions and 4 deletions

View file

@ -36,8 +36,8 @@ set_prop(hal_bluetooth, vendor_bluetooth_prop)
#For bluetooth firmware
r_dir_file(hal_bluetooth_default, bt_firmware_file)
allow hal_bluetooth_default persist_bluetooth_file:dir r_dir_perms;
allow hal_bluetooth_default persist_bluetooth_file:file r_file_perms;
allow hal_bluetooth_default persist_bluetooth_file:dir rw_dir_perms;
allow hal_bluetooth_default persist_bluetooth_file:file create_file_perms;
#For QMI socket
allow hal_bluetooth_default self:{ qipcrtr_socket } create_socket_perms_no_ioctl;

View file

@ -44,8 +44,8 @@ allow hal_bluetooth {
#For bluetooth firmware
r_dir_file(hal_bluetooth, bt_firmware_file)
allow hal_bluetooth_qti persist_bluetooth_file:dir r_dir_perms;
allow hal_bluetooth_qti persist_bluetooth_file:file r_file_perms;
allow hal_bluetooth_qti persist_bluetooth_file:dir rw_dir_perms;
allow hal_bluetooth_qti persist_bluetooth_file:file create_file_perms;
r_dir_file(hal_bluetooth_qti, mnt_vendor_file)
allow hal_bluetooth self:socket create_socket_perms;
allowxperm hal_bluetooth self:socket ioctl msm_sock_ipc_ioctls;