sm6150-common: sepolicy: Add vendor prefix to camera persist file type
Change-Id: Ia42113acb0fcf5667c0b89ecdd7def13681ca0be
This commit is contained in:
parent
fd47aee8f1
commit
f23eac1c98
2
sepolicy/vendor/file_contexts
vendored
2
sepolicy/vendor/file_contexts
vendored
@ -2,7 +2,7 @@
|
|||||||
/dev/socket/audio_hw_socket u:object_r:audio_socket:s0
|
/dev/socket/audio_hw_socket u:object_r:audio_socket:s0
|
||||||
|
|
||||||
# Camera
|
# Camera
|
||||||
/mnt/vendor/persist/camera(/.*)? u:object_r:camera_persist_file:s0
|
/mnt/vendor/persist/camera(/.*)? u:object_r:vendor_persist_camera_file:s0
|
||||||
|
|
||||||
# Data files
|
# Data files
|
||||||
/data/per_boot(/.*)? u:object_r:per_boot_file:s0
|
/data/per_boot(/.*)? u:object_r:per_boot_file:s0
|
||||||
|
4
sepolicy/vendor/hal_camera_default.te
vendored
4
sepolicy/vendor/hal_camera_default.te
vendored
@ -1,11 +1,11 @@
|
|||||||
type camera_persist_file, file_type, vendor_persist_type;
|
type vendor_persist_camera_file, file_type, vendor_persist_type;
|
||||||
|
|
||||||
hal_client_domain(hal_camera_default, hal_power)
|
hal_client_domain(hal_camera_default, hal_power)
|
||||||
|
|
||||||
allow hal_camera_default proc_meminfo:file r_file_perms;
|
allow hal_camera_default proc_meminfo:file r_file_perms;
|
||||||
|
|
||||||
r_dir_file(hal_camera_default, vendor_sysfs_kgsl)
|
r_dir_file(hal_camera_default, vendor_sysfs_kgsl)
|
||||||
r_dir_file(hal_camera_default, camera_persist_file)
|
r_dir_file(hal_camera_default, vendor_persist_camera_file)
|
||||||
r_dir_file(hal_camera_default, mnt_vendor_file)
|
r_dir_file(hal_camera_default, mnt_vendor_file)
|
||||||
|
|
||||||
allow hal_camera_default remosaic_daemon_service:service_manager find;
|
allow hal_camera_default remosaic_daemon_service:service_manager find;
|
||||||
|
Loading…
Reference in New Issue
Block a user