Skip to content

Commit

Permalink
Add sepolicy for mapper5 stable-c interface
Browse files Browse the repository at this point in the history
Tests done:
- Android boot in BM & GVT-d config
- adb reboot

Tracked-On: OAM-124485
Tracked-On: OAM-124524
Signed-off-by: Jeevaka Prabu Badrappan <[email protected]>
  • Loading branch information
JeevakaPrabu committed Sep 9, 2024
1 parent 353320f commit b4116fc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions graphics/mesa/hal_graphics_composer_default.te
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ dontaudit hal_graphics_composer_default default_prop:file *;
allow hal_graphics_composer_default sysfs:file { open read };
allow hal_graphics_composer_default uio_device:chr_file { map open read write };
allow hal_graphics_composer_default hal_graphics_allocator_default_tmpfs:file { read write map };
allow hal_graphics_composer_default hal_graphics_mapper_service:service_manager find;
14 changes: 14 additions & 0 deletions graphics/mesa/service_contexts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# "mapper/minigbm" represents "mapper.minigbm.so" which is a minigbm
# implementation of mapper5 stable-c interface. This corresponds to the
# VINTF manifest declaration:
# <hal format="native">
# <name>mapper</name>
# <version>5.0</version>
# <interface>
# <instance>minigbm</instance>
# </interface>
# </hal>
# Note that native/passthrough HALs use the "{type}/{instance}" pattern from
# SEPolicy perspective and are looked up via the corresponding filename
# "{type}.{instance}.so".
mapper/minigbm u:object_r:hal_graphics_mapper_service:s0

0 comments on commit b4116fc

Please sign in to comment.