Closed Bug 1432319 Opened 7 years ago Closed 7 years ago

MinGW does not know about Process Mitigation options

Categories

(Core :: Security: Process Sandboxing, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

Details

(Whiteboard: [tor][sb+])

Attachments

(1 file)

MinGW patch needed; I'll see if I can figure this one out without annoying Jacek though. 0:03.07 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc: In function ‘bool sandbox::ApplyProcessMitigationsToCurrentProcess(sandbox::MitigationFlags)’: 0:03.07 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:163:5: error: ‘PROCESS_MITIGATION_DYNAMIC_CODE_POLICY’ was not declared in this scope 0:03.07 PROCESS_MITIGATION_DYNAMIC_CODE_POLICY policy = {}; 0:03.08 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0:03.08 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:164:5: error: ‘policy’ was not declared in this scope 0:03.08 policy.ProhibitDynamicCode = true; 0:03.08 ^~~~~~ 0:03.08 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:172:40: error: ‘ProcessDynamicCodePolicy’ was not declared in this scope 0:03.08 if (!set_process_mitigation_policy(ProcessDynamicCodePolicy, &policy, 0:03.08 ^~~~~~~~~~~~~~~~~~~~~~~~ 0:03.08 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:184:5: error: ‘PROCESS_MITIGATION_FONT_DISABLE_POLICY’ was not declared in this scope 0:03.08 PROCESS_MITIGATION_FONT_DISABLE_POLICY policy = {}; 0:03.08 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0:03.08 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:185:5: error: ‘policy’ was not declared in this scope 0:03.08 policy.DisableNonSystemFonts = true; 0:03.08 ^~~~~~ 0:03.08 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:187:40: error: ‘ProcessFontDisablePolicy’ was not declared in this scope 0:03.08 if (!set_process_mitigation_policy(ProcessFontDisablePolicy, &policy, 0:03.08 ^~~~~~~~~~~~~~~~~~~~~~~~ 0:03.08 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:199:5: error: ‘PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY’ was not declared in this scope 0:03.08 PROCESS_MITIGATION_BINARY_SIGNATURE_POLICY policy = {}; 0:03.08 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0:03.08 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:201:5: error: ‘policy’ was not declared in this scope 0:03.08 policy.MicrosoftSignedOnly = true; 0:03.08 ^~~~~~ 0:03.09 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:206:40: error: ‘ProcessSignaturePolicy’ was not declared in this scope 0:03.09 if (!set_process_mitigation_policy(ProcessSignaturePolicy, &policy, 0:03.09 ^~~~~~~~~~~~~~~~~~~~~~ 0:03.09 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:217:5: error: ‘PROCESS_MITIGATION_IMAGE_LOAD_POLICY’ was not declared in this scope 0:03.09 PROCESS_MITIGATION_IMAGE_LOAD_POLICY policy = {}; 0:03.09 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0:03.09 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:219:7: error: ‘policy’ was not declared in this scope 0:03.09 policy.NoRemoteImages = true; 0:03.09 ^~~~~~ 0:03.09 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:221:7: error: ‘policy’ was not declared in this scope 0:03.09 policy.NoLowMandatoryLabelImages = true; 0:03.09 ^~~~~~ 0:03.09 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:225:7: error: ‘policy’ was not declared in this scope 0:03.09 policy.PreferSystem32Images = true; 0:03.09 ^~~~~~ 0:03.09 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:228:40: error: ‘ProcessImageLoadPolicy’ was not declared in this scope 0:03.09 if (!set_process_mitigation_policy(ProcessImageLoadPolicy, &policy, 0:03.09 ^~~~~~~~~~~~~~~~~~~~~~ 0:03.09 /home/tom/Documents/moz/mingw-work/sandbox/security/sandbox/chromium/sandbox/win/src/process_mitigations.cc:228:65: error: ‘policy’ was not declared in this scope 0:03.11 if (!set_process_mitigation_policy(ProcessImageLoadPolicy, &policy,
Sent something upstream
Priority: -- → P1
Whiteboard: [tor] → [tor][sb+]
Comment on attachment 8945083 [details] Bug 1432319 Bump MinGW version to incorporate Process Mitigation structs needed by the sandbox https://reviewboard.mozilla.org/r/215310/#review221464
Attachment #8945083 - Flags: review?(nfroyd) → review+
Keywords: checkin-needed
We're sorry, Autoland could not rebase your commits for you automatically. Please manually rebase your commits and try again. hg error in cmd: hg rebase -s 09beab1df0d1600dff51980565b08bfc4e293e15 -d 89f1698c5ca5: rebasing 444232:09beab1df0d1 "Bug 1432319 Bump MinGW version to incorporate Process Mitigation structs needed by the sandbox r=froydnj" (tip) merging taskcluster/scripts/misc/build-gcc-mingw32.sh warning: conflicts while merging taskcluster/scripts/misc/build-gcc-mingw32.sh! (edit, then use 'hg resolve --mark') unresolved conflicts (see hg resolve, then hg rebase --continue)
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/b0c53432cc82 Bump MinGW version to incorporate Process Mitigation structs needed by the sandbox r=froydnj
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: