Commit 1cb6c6dc authored by Daniel Nicoara's avatar Daniel Nicoara Committed by Commit Bot

cast: Whitelist libEGL and libGLESv2 provided by ANGLE

These libraries are provided by the build and are installed with
Chromium target. On ARM targets where the sandbox needs to be
initialized early, EGL and GLES libraries need to be whitelisted such
that the GPU process can load them post sandboxing.

BUG=1097320
TEST=Manually on device to verify cast_shell starts.

Change-Id: I38a5de8675501d9d0aa1aa246ff34d0366b2f3bd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2282898Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Commit-Queue: Daniel Nicoara <dnicoara@chromium.org>
Cr-Commit-Position: refs/heads/master@{#785741}
parent 53fa5eef
......@@ -252,7 +252,8 @@ void AddArmGpuWhitelist(std::vector<BrokerFilePermission>* permissions) {
// Need to look in vendor paths for custom vendor implementations.
static const char* const kWhitelistedChromecastPaths[] = {
"/oem_cast_shlib/", "/system/vendor/lib/", "/system/lib/"};
"/oem_cast_shlib/", "/system/vendor/lib/", "/system/lib/",
"/system/chrome/lib/"};
void AddChromecastArmGpuWhitelist(
std::vector<BrokerFilePermission>* permissions) {
......@@ -262,7 +263,9 @@ void AddChromecastArmGpuWhitelist(
// Files needed by the ARM GPU userspace.
static const char* const kReadOnlyLibraries[] = {"libGLESv2.so.2",
"libEGL.so.1"};
"libEGL.so.1",
// Whitelist ANGLE libraries.
"libGLESv2.so", "libEGL.so"};
for (const char* library : kReadOnlyLibraries) {
for (const char* path : kWhitelistedChromecastPaths) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment