Add SetupWraith into allow list of invoke signRSA API, and remove priv_app from the allow list and modify the error message. am: 18be093969 am: efa57e9083
Original change: https://googleplex-android-review.googlesource.com/c/platform/vendor/widevine/+/14523182 Change-Id: I241cba408d87a5bf4bbac4f8d418c91ded82ed41
This commit is contained in:
@@ -1780,9 +1780,11 @@ Return<void> WVDrmPlugin::signRSA(
|
||||
|
||||
const auto& self = android::hardware::IPCThreadState::self();
|
||||
const char* sid = self->getCallingSid();
|
||||
if (!sid || (!strstr(sid, "mediashell_app") && !strstr(sid, "priv_app")
|
||||
&& !strstr(sid, "mediadrmserver"))) {
|
||||
ALOGE("Only mediashell/priv-app/mediadrmserver can call signRSA");
|
||||
if (!sid || (!strstr(sid, ":mediashell_app:")
|
||||
&& !strstr(sid, ":mediadrmserver:")
|
||||
&& !strstr(sid, ":setupwraith_app:"))) {
|
||||
ALOGE("Only mediashell/mediadrmserver/setupwraith_app can call signRSA, "
|
||||
"but actually: %s", sid);
|
||||
_hidl_cb(Status::ERROR_DRM_UNKNOWN, hidl_vec<uint8_t>());
|
||||
return Void();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user