Closed Bug 1506198 Opened 7 years ago Closed 1 year ago

Re-investigate per-content process tempdirs

Categories

(Core :: Security: Process Sandboxing, enhancement, P2)

x86_64
Linux
enhancement

Tracking

()

RESOLVED FIXED
132 Branch
Tracking Status
firefox65 --- wontfix
firefox132 --- fixed

People

(Reporter: gcp, Assigned: gerard-majax)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

We currently use a shared temporary directory, shared by all content processes. After Fission, we want origins (sites?) to not be able to influence each other. So we should either: a) Make this directory per-content-process. b) Remove tempdir access entirely. This may be possible after WebGL and more font remoting.
Priority: -- → P2
Assignee: nobody → gpascutto
Severity: normal → S3

Currently this is only an issue on Linux as the content temp dir was removed for other platforms: https://bugzilla.mozilla.org/show_bug.cgi?id=1772089

See Also: → 1901996

I can confirm that on current Ubuntu, there doesn't seem to be anything that needs to write to the content tmpdir any more.

Assignee: gpascutto → lissyx+mozillians

https://treeherder.mozilla.org/jobs?repo=try&revision=45a23d311b9cdd59a5199d4c208cb418a019975a&selectedTaskRun=Lxop6uAjR2mCyVJq37l9vw.0

At least some WebGL tests fail on Wayland, because they're trying to use EGL from content and crash when the tempdir isn't there for caches. They shouldn't do that :P

Depends on: 1750820

Now that bug 1750820 landed, the try is better: https://treeherder.mozilla.org/jobs?repo=try&revision=440ab7a6ad71c8b2bed97f418678632b45f5cb57
We have a bunch of failures on a sandbox test that was verifying this feature, so this is expected, I left it to make sure.

Attachment #9421208 - Attachment description: WIP: Bug 1506198 - Remove content temp dir → Bug 1506198 - Remove content temp dir r?jld!
Attachment #9421208 - Attachment description: Bug 1506198 - Remove content temp dir r?jld! → Bug 1506198 - Remove content temp dir r?gcp!

Backed out for causing bustage on SandboxBroker.cpp

Backout link

Push with failures

Failure log

Flags: needinfo?(lissyx+mozillians)
Flags: needinfo?(lissyx+mozillians)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: