Closed Bug 1141906 Opened 10 years ago Closed 10 years ago

Soften assertion failures in Linux SandboxInfo (and maybe elsewhere in sandbox code)

Categories

(Core :: Security: Process Sandboxing, defect)

All
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: jld, Assigned: jld)

References

Details

Attachments

(1 file)

The Linux sandboxing code has a few MOZ_CRASH()es that I think should be weakened to MOZ_DIAGNOSTIC_ASSERT(). This includes, but may not be limited to, the ones about how syscalls do/don't fail in SandboxInfo (see also bug 1137007 comment #10). The general idea here is that — on release builds — the worst the sandboxing code should be able to do in response to deficiencies in the kernel is disable sandboxing support, and possibly dependent functionality along with it (e.g., GeckoMediaPlugin). It probably won't always be as clear-cut as that, but if there's something reasonable that can be done instead of crashing (and isn't insecure), release builds probably should. Debug builds should still have all the assertions; and as for non-debug Nightly and Aurora builds, the comment on MOZ_DIAGNOSTIC_ASSERT's definition about “potentially rare enough to require real user testing” seems to me to be applicable here. Those of us who use those builds for our regular browsing have accepted a certain risk of needing to file bugs.
Attachment #8579138 - Flags: review?(gdestuynder) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: