#include "services/audio/audio_sandbox_hook_linux.h"
#include <dlfcn.h>
#include <unistd.h>
#include <string>
#include <string_view>
#include <vector>
#include "base/environment.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/logging.h"
#include "base/path_service.h"
#include "base/strings/stringprintf.h"
#include "sandbox/linux/syscall_broker/broker_command.h"
#include "sandbox/linux/syscall_broker/broker_file_permission.h"
BrokerFilePermission;
MakeBrokerCommandSet;
namespace audio {
namespace {
#if defined(USE_ALSA)
void AddAlsaFilePermissions(std::vector<BrokerFilePermission>* permissions) { … }
#endif
#if defined(USE_PULSEAUDIO)
void AllowAccessToEnvSpecifiedPath(
std::string_view variable_name,
std::vector<BrokerFilePermission>* permissions,
bool recursive_only) { … }
void AddPulseAudioFilePermissions(
std::vector<BrokerFilePermission>* permissions) { … }
#endif
std::vector<BrokerFilePermission> GetAudioFilePermissions() { … }
void LoadAudioLibraries() { … }
}
bool AudioPreSandboxHook(sandbox::policy::SandboxLinux::Options options) { … }
}