Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sepolicy for mapper5 stable-c interface #343

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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