Skip to content

Commit

Permalink
daisy: sepolicy: Address sepolicy denials for the Camera HAL Switch
Browse files Browse the repository at this point in the history
Signed-off-by: LinkBoi00 <[email protected]>
  • Loading branch information
TogoFire authored and proxer05 committed Sep 25, 2021
1 parent bb15e3c commit 32d477b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions sepolicy/vendor/init.te
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ allow init sysfs_leds:file r_file_perms;
allow init sysfs_leds:lnk_file r_file_perms;
allow init sysfs_kgsl:file create_file_perms;
allow init sysfs_kgsl:lnk_file r_file_perms;
allow init socket_device:sock_file { create };
3 changes: 3 additions & 0 deletions sepolicy/vendor/property_contexts
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ sys.fp.vendor u:object_r:fingerprint_prop:s0

# Perf
vendor.target.init.complete u:object_r:vendor_mpctl_prop:s0

# HAL3 | HAL1 Switch
persist.camera.profile u:object_r:camera_prop:s0
1 change: 1 addition & 0 deletions sepolicy/vendor/system_app.te
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
allow system_app sysfs_zram:dir r_dir_perms;
allow system_app sysfs_zram:file r_file_perms;
allow system_app wificond:binder call;
allow system_app camera_prop:property_service { set };

0 comments on commit 32d477b

Please sign in to comment.