diff --git a/drmserver.te b/drmserver.te index b4191118d..c8e0b2170 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 faec50dad..43783d653 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;