Process IDs are truncated in sandbox file broker thread names
Categories
(Core :: Security: Process Sandboxing, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox113 | --- | fixed |
People
(Reporter: jld, Assigned: jld)
Details
Attachments
(1 file)
The Linux sandbox file broker runs a separate thread for each instance (each child process), which includes the child pid in the thread name in case it's useful for debugging/troubleshooting. However, the format allows only 5 characters for the pid, which was fine when the maximum pid was usually 32767 or something, and stopped being fine a while back when systemd got into the habit of setting it to 4194304 (the maximum the kernel will currently allow).
It's a one-line patch to squeeze out the spaces and get us another 2 characters, so I might as well do that.
(Long-term it would be nice to use epoll instead of separate threads — historically on Boot2Gecko we made the broker threads' effective uid/gid match their respective client processes, but that was removed in bug 1382099 — and if/when that happens this will become a non-issue.)
Assignee | ||
Comment 1•2 years ago
|
||
Comment 3•2 years ago
|
||
bugherder |
Description
•