diff --git a/drmserver.te b/drmserver.te index b4191118d699b56be26d8d2111b774e792dc43b4..c8e0b217029faf4829e95433aef3204eba9a95b6 100644 --- a/drmserver.te +++ b/drmserver.te @@ -37,3 +37,7 @@ allow drmserver apk_data_file:sock_file unlink; # After taking a video, drmserver looks at the video file. r_dir_file(drmserver, media_rw_data_file) + +# Read resources from open apk files passed over Binder. +allow drmserver apk_data_file:file { read getattr }; +allow drmserver asec_apk_file:file { read getattr }; diff --git a/mediaserver.te b/mediaserver.te index faec50dadf94b48fe343410fa208ad65ecd1be0f..43783d653efc3408ca1c986d013e13dd23fb3021 100644 --- a/mediaserver.te +++ b/mediaserver.te @@ -36,8 +36,9 @@ allow mediaserver audio_device:chr_file rw_file_perms; # XXX Label with a specific type? allow mediaserver sysfs:file rw_file_perms; -# XXX Why? +# Read resources from open apk files passed over Binder. allow mediaserver apk_data_file:file { read getattr }; +allow mediaserver asec_apk_file:file { read getattr }; # Access camera device. allow mediaserver camera_device:chr_file rw_file_perms;