msm8953-common: Update sepolicy

This commit is contained in:
jeangraff30
2020-11-15 21:14:25 +01:00
parent 6f64594d42
commit c4b73d6758
4 changed files with 24 additions and 0 deletions

20
sepolicy/vendor/mm-qcamerad.te vendored Normal file
View File

@@ -0,0 +1,20 @@
typeattribute mm-qcamerad data_between_core_and_vendor_violators;
allow mm-qcamerad camera_prop:property_service set;
allow mm-qcamerad init:unix_stream_socket connectto;
allow mm-qcamerad persist_file:dir { getattr open read search };
allow mm-qcamerad persist_file:file { read open getattr };
allow mm-qcamerad property_socket:sock_file write;
allow mm-qcamerad mnt_vendor_file:file rw_file_perms;
# TODO(b/36599434): Remove this once mm-qcamerad stops using Binder services
typeattribute mm-qcamerad binder_in_vendor_violators;
allow mm-qcamerad binder_device:chr_file { read write };
allow mm-qcamerad fwk_sensor_hwservice:hwservice_manager find;
allow mm-qcamerad camera_data_file:dir search;
allow mm-qcamerad vendor_data_file:dir r_dir_perms;
allow mm-qcamerad vendor_data_file:file rw_file_perms;
vndbinder_use(mm-qcamerad);
get_prop(mm-qcamerad, moto_boot_prop);