diff --git a/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp index 8e698606ed0c..a985d257a2c6 100644 --- a/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp +++ b/security/sandbox/linux/broker/SandboxBrokerPolicyFactory.cpp @@ -140,9 +140,14 @@ SandboxBrokerPolicyFactory::SandboxBrokerPolicyFactory() // Bug 1308851: NVIDIA proprietary driver when using WebGL policy->AddPrefix(rdwr, "/dev", "nvidia"); - // Bug 1312678: radeonsi/Intel with DRI when using WebGL + // Bug 1312678: radeonsi/Intel with DRI when using WebGL policy->AddDir(rdwr, "/dev/dri"); +#ifdef MOZ_ALSA + // Bug 1309098: ALSA support + policy->AddDir(rdwr, "/dev/snd"); +#endif + mCommonContentPolicy.reset(policy); #endif } diff --git a/security/sandbox/linux/broker/moz.build b/security/sandbox/linux/broker/moz.build index 343a5cfad79e..858e1ad83e92 100644 --- a/security/sandbox/linux/broker/moz.build +++ b/security/sandbox/linux/broker/moz.build @@ -20,6 +20,9 @@ if CONFIG['OS_TARGET'] == 'Android': if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'gonk': DEFINES['HAVE_ANDROID_OS'] = True +if CONFIG['MOZ_ALSA']: + DEFINES['MOZ_ALSA'] = True + LOCAL_INCLUDES += [ '/security/sandbox/linux', # SandboxLogging.h, SandboxInfo.h ]