Skip to content

Commit

Permalink
(merge) media: Allow third party modules in MediaFoundationCdm sandbox
Browse files Browse the repository at this point in the history
Some codec packs (e.g. DolbyVision) might be provided by third party
directly and not signed by MS. To allow those playback, allow third
party modules in the MediaFoundationCdm sandbox.

Tested with DolbyVision content in a custom build.

(cherry picked from commit e3bbf18)

Bug: 1316716
Change-Id: I68c9f8b86635200886815344375cbee8b33d778b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3588221
Reviewed-by: Frank Li <frankli@microsoft.com>
Reviewed-by: Will Harris <wfh@chromium.org>
Commit-Queue: Xiaohan Wang <xhwang@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#993055}
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3595281
Auto-Submit: Xiaohan Wang <xhwang@chromium.org>
Cr-Commit-Position: refs/branch-heads/5005@{#51}
Cr-Branched-From: 5b4d945-refs/heads/main@{#992738}
  • Loading branch information
xhwang-chromium authored and Chromium LUCI CQ committed Apr 20, 2022
1 parent a8d4f95 commit 59b3e30
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sandbox/policy/win/sandbox_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,8 @@ ResultCode SandboxWin::GeneratePolicyForSandboxedProcess(
// Post-startup mitigations.
mitigations = MITIGATION_DLL_SEARCH_ORDER;
if (!cmd_line.HasSwitch(switches::kAllowThirdPartyModules) &&
sandbox_type != Sandbox::kSpeechRecognition) {
sandbox_type != Sandbox::kSpeechRecognition &&
sandbox_type != Sandbox::kMediaFoundationCdm) {
mitigations |= MITIGATION_FORCE_MS_SIGNED_BINS;
}

Expand Down

0 comments on commit 59b3e30

Please sign in to comment.