Skip to content

Commit

Permalink
Bug 1843020 - Re-enable Win32k Lockdown for Utility WMF r=bobowen
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Lissy committed Jul 18, 2023
1 parent edba63e commit eccd396
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions ipc/glue/UtilityAudioDecoderParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,8 @@ void UtilityAudioDecoderParent::WMFPreloadForSandbox() {
#if defined(MOZ_SANDBOX) && defined(XP_WIN)
// mfplat.dll and mf.dll will be preloaded by
// wmf::MediaFoundationInitializer::HasInitialized()
# if defined(DEBUG)
// WMF Shutdown on debug build somehow requires this
// WMF Shutdown requires this or it will badly crash
UtilityProcessImpl::LoadLibraryOrCrash(L"ole32.dll");
# endif // defined(DEBUG)

auto rv = wmf::MediaFoundationInitializer::HasInitialized();
if (!rv) {
Expand Down
1 change: 1 addition & 0 deletions security/sandbox/common/test/SandboxTestingChild.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ void SandboxTestingChild::Bind(Endpoint<PSandboxTestingChild>&& aEndpoint) {
switch (s->mSandbox) {
case ipc::SandboxingKind::GENERIC_UTILITY:
RunTestsGenericUtility(this);
RunTestsUtilityAudioDecoder(this, s->mSandbox);
break;
#ifdef MOZ_APPLEMEDIA
case ipc::SandboxingKind::UTILITY_AUDIO_DECODING_APPLE_MEDIA:
Expand Down
2 changes: 1 addition & 1 deletion security/sandbox/common/test/SandboxTestingChildTests.h
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ void RunTestsUtilityAudioDecoder(SandboxTestingChild* child,
# endif // XP_MACOSX
#else // XP_UNIX
# ifdef XP_WIN
RunWinTestWin32k(child, false);
RunWinTestWin32k(child);
# endif // XP_WIN
child->ReportNoTests();
#endif // XP_UNIX
Expand Down
1 change: 0 additions & 1 deletion security/sandbox/win/src/sandboxbroker/sandboxBroker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1500,7 +1500,6 @@ struct GenericUtilitySandboxProps : public UtilitySandboxProps {};
struct UtilityAudioDecodingWmfSandboxProps : public UtilitySandboxProps {
UtilityAudioDecodingWmfSandboxProps() {
mDelayedTokenLevel = sandbox::USER_LIMITED;
mUseWin32kLockdown = false;
mDelayedMitigations = sandbox::MITIGATION_STRICT_HANDLE_CHECKS |
sandbox::MITIGATION_DLL_SEARCH_ORDER;
#ifdef MOZ_WMF
Expand Down

0 comments on commit eccd396

Please sign in to comment.