Commit 23407e6c authored by Armando Miraglia's avatar Armando Miraglia Committed by Commit Bot

[Audio Process][Sandbox] Add libnss_compat to the whitelist.

After manual testing on a Ubuntu distribution (more precisely a XUbuntu
18.04) I was able to determine that libnss_compat is needed by ALSA to
communicate with libnss and be able to read the groups available on the
system.

This CL adds the affected library to the loaded list of libraries in the
audio sandbox hook for linux.

Bug: 1032949
Change-Id: I779158f6cf4eb48ef6b29469ee52181f0c69a70e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2023893Reviewed-by: default avatarRobert Sesek <rsesek@chromium.org>
Commit-Queue: Armando Miraglia <armax@chromium.org>
Cr-Commit-Position: refs/heads/master@{#735928}
parent 6465ea09
...@@ -161,7 +161,7 @@ std::vector<BrokerFilePermission> GetAudioFilePermissions() { ...@@ -161,7 +161,7 @@ std::vector<BrokerFilePermission> GetAudioFilePermissions() {
void LoadAudioLibraries() { void LoadAudioLibraries() {
const std::string libraries[]{"libasound.so.2", "libpulse.so.0", const std::string libraries[]{"libasound.so.2", "libpulse.so.0",
"libnss_files.so.2"}; "libnss_files.so.2", "libnss_compat.so.2"};
for (const auto& library_name : libraries) { for (const auto& library_name : libraries) {
if (nullptr == if (nullptr ==
dlopen(library_name.c_str(), RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE)) { dlopen(library_name.c_str(), RTLD_NOW | RTLD_GLOBAL | RTLD_NODELETE)) {
......
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