Skip to content

Commit

Permalink
Add sepolicy for application rendering setting property
Browse files Browse the repository at this point in the history
All app need the read/write authorization
to the customized property presist.vendor.intel.dGPU.*
and persist.vendor.intel.lowPir.* for rendering option.

Tracked-On: OAM-122333
Signed-off-by: HeYue <[email protected]>
Signed-off-by: jizhenlo <[email protected]>
  • Loading branch information
yhe39 authored and sysopenci committed Aug 6, 2024
1 parent c58c37c commit 77c6f8b
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions app_render_setting_property/platform_app.te
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
get_prop(platform_app, vendor_intel_render_selection_prop)
1 change: 1 addition & 0 deletions app_render_setting_property/priv_app.te
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
get_prop(priv_app, vendor_intel_render_selection_prop)
2 changes: 2 additions & 0 deletions app_render_setting_property/property.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
vendor_public_prop(vendor_intel_render_selection_prop)
typeattribute vendor_intel_render_selection_prop extended_core_property_type;
2 changes: 2 additions & 0 deletions app_render_setting_property/property_contexts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
persist.vendor.intel.dGPU u:object_r:vendor_intel_render_selection_prop:s0
persist.vendor.intel.lowPir u:object_r:vendor_intel_render_selection_prop:s0
4 changes: 4 additions & 0 deletions app_render_setting_property/system_app.te
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#
# system_app
#
set_prop(system_app, vendor_intel_render_selection_prop)
1 change: 1 addition & 0 deletions app_render_setting_property/system_server.te
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
get_prop(system_server, vendor_intel_render_selection_prop)
1 change: 1 addition & 0 deletions app_render_setting_property/untrusted_app_all.te
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
get_prop(untrusted_app_all, vendor_intel_render_selection_prop)

0 comments on commit 77c6f8b

Please sign in to comment.