Closed Bug 1620114 Opened 4 years ago Closed 4 years ago

Enable CIG (= Code Integrity Guard) in RDD process before process creation

Categories

(Firefox :: Launcher Process, enhancement, P3)

Unspecified
Windows
enhancement

Tracking

()

RESOLVED FIXED
85 Branch
Tracking Status
firefox85 --- disabled
firefox86 --- fixed

People

(Reporter: toshi, Assigned: toshi)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

Currently we enable CIG in RDD (and Socket) process after process creation. This bug is to track a project to enable CIG before process creation.

Depends on: 1620118
Depends on: 1639030
Depends on: 1659438

On top of Automatic CIG bypassing and Automatic entrypoint redirection (Bug 1659438),
we can enable CIG in the RDD process without breaking process launch.
This patch also excludes modules in the directory containing the executable
from CIG as the process needs to load our modules such as mozglue.dll.

Depends on D88359

Assignee: nobody → tkikuchi
Status: NEW → ASSIGNED
Attachment #9172299 - Attachment is obsolete: true
Depends on: 1676913

This patch enables pre-spawn CIG in the RDD process.

If CIG prevents a module in the executable's Import Directory Table, Windows totally
fails to launch a process. So we add a policy rule of SUBSYS_SIGNED_BINARY for
all files under the directory containing the executable such as mozglue.dll, and
modules injected via Import Directory Table. The latter ones will be blocked by our
blocklist with REDIRECT_TO_NOOP_ENTRYPOINT.

Pushed by cbrindusan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9df12e4b7a00
Enable pre-spawn CIG in RDD.  r=bobowen
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 85 Branch
Regressions: 1682834

This was backed out from Beta85 in bug 1682834. It remains enabled for 86+ at this time.
https://hg.mozilla.org/releases/mozilla-beta/rev/7de611ce368d

Depends on: 1704373
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: