Skip to content
Snippets Groups Projects
Commit d53f0737 authored by Zheng Zhang's avatar Zheng Zhang
Browse files

Allow mediaserver to access vendor_app_file

Currently, when vendor APK try to use MediaPlayer to play its audio
resource, it would fail due to this neverallow rules.

avc: denied { read } for path="/vendor/app/TicFitness/TicFitness.apk" dev="dm-1" ino=183 scontext=u:r:mediaserver:s0 tcontext=u:object_r:vendor_app_file:s0 tclass=file permissive=0

Bug: 78436043
(fix CTS bug: 80163922)
Change-Id: Id910184c16955f9e4e4c8d3bb6eca2253ab59063
(cherry picked from commit 3623c2b6)
parent 473cc5e1
Branches oreo-cts-dev
No related tags found
No related merge requests found
...@@ -691,6 +691,7 @@ full_treble_only(` ...@@ -691,6 +691,7 @@ full_treble_only(`
-installd -installd
-postinstall_dexopt -postinstall_dexopt
-system_server -system_server
-mediaserver
} vendor_app_file:{ file lnk_file } r_file_perms; } vendor_app_file:{ file lnk_file } r_file_perms;
# Limit access to /vendor/overlay # Limit access to /vendor/overlay
......
...@@ -102,6 +102,9 @@ allow mediaserver hidl_token_hwservice:hwservice_manager find; ...@@ -102,6 +102,9 @@ allow mediaserver hidl_token_hwservice:hwservice_manager find;
allow mediaserver oemfs:dir search; allow mediaserver oemfs:dir search;
allow mediaserver oemfs:file r_file_perms; allow mediaserver oemfs:file r_file_perms;
# /vendor apk access
allow mediaserver vendor_app_file:file r_file_perms;
use_drmservice(mediaserver) use_drmservice(mediaserver)
allow mediaserver drmserver:drmservice { allow mediaserver drmserver:drmservice {
consumeRights consumeRights
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment