Skip to content

Commit

Permalink
Add sepolicy for get and set of vendor.mesa.anv.queue.override
Browse files Browse the repository at this point in the history
vendor.mesa.anv.queue.override is set in init.rc and read by
mesa.

Tests done:
- Android boot with angle and vulkan as backend
- Video playback and recording
- adb reboot

Tracked-On: OAM-126014
Signed-off-by: JeevakaPrabu <[email protected]>
  • Loading branch information
JeevakaPrabu committed Nov 26, 2024
1 parent 68f251d commit d06a5dc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions graphics/mesa/domain.te
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
allow domain sysfs_app_readable:dir search;
get_prop(coredomain, vendor_graphics_mesa_prop)
1 change: 1 addition & 0 deletions graphics/mesa/property.te
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor_internal_prop(vendor_graphics_hwcomposer_prop)
vendor_public_prop(vendor_graphics_gles_prop)
vendor_restricted_prop(vendor_graphics_mesa_prop)
1 change: 1 addition & 0 deletions graphics/mesa/property_contexts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor.hwcomposer.edid. u:object_r:vendor_graphics_hwcomposer_prop:s0
vendor.gles. u:object_r:vendor_graphics_gles_prop:s0
vendor.mesa. u:object_r:vendor_graphics_mesa_prop:s0
1 change: 1 addition & 0 deletions graphics/mesa/vendor_init.te
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dontaudit vendor_init debugfs_tracing_instances:dir write;
allow vendor_init mediaserver:process setsched;
allow vendor_init self:udp_socket create;
dontaudit vendor_init coreu_data_file:dir create_dir_perms;
set_prop(vendor_init, vendor_graphics_mesa_prop)

0 comments on commit d06a5dc

Please sign in to comment.