Don't die if Subprocess can't chdir to workdir on OpenBSD
Categories
(Firefox :: Extension Compatibility, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox73 | --- | fixed |
People
(Reporter: jcs, Assigned: gaston)
References
Details
Attachments
(2 files)
877 bytes,
patch
|
Details | Diff | Splinter Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
With OpenBSD's veiled filesystem (see #1580271), the workdir
of a Subprocess may not be visible, but the path to the actual executable being executed is.
In the case of 3rd party extensions like KeepassXC which need to execute /usr/local/bin/keepassxc-proxy
, the Subprocess module sets a workdir
of /usr/local/bin
and then tries to chdir
to it before executing. This fails on OpenBSD because Firefox doesn't have read access to /usr/local/bin
, but it may (if the user added it) have access to execute /usr/local/bin/keepassxc-proxy
.
So on OpenBSD, do not error if the chdir
fails.
Assignee | ||
Comment 1•5 years ago
|
||
Comment on attachment 9110731 [details] [diff] [review]
patch-toolkit_modules_subprocess_subprocess_worker_unix_js
Who would be a good reviewer for that ?
Assignee | ||
Comment 2•5 years ago
|
||
:kmag, since this is your code, do you remember the need for the chdir() ?
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Andrew, any hint ? just so that we know if this is something that could go away on all platforms..
Assignee | ||
Comment 5•5 years ago
|
||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
bugherder |
Comment 8•5 years ago
|
||
Looks like Kris addressed this over on Phabricator...
Comment 9•5 years ago
|
||
(In reply to Andrew Swan [:aswan] from comment #8)
Looks like Kris addressed this over on Phabricator...
Description
•