mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3007] Firenvim extension to firefox #1882
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1882
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @b33rcity on GitHub (Oct 21, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3007
I'm wondering if anyone has successfully used firenvim with a sandboxed Firefox?
I ran firefox in- and outside of a firejail sandbox and lsof on the nvim process to get some clues about what to whitelist. With sandbox:
and a few dozen more
/proc/<PID>/entries with the same permission denied error when using the sandbox. Without the sandbox, there would be entries including the libraries nvim is linked against, nvim's own binary, a couple dozen unix sockets, and a TCP socket (firenvim uses a WebSocket to do RPC with nvim). This isn't surprising, of course--I'm just not sure what to do about it.I created ~/.config/firejail/firefox.local with this content:
and this allowed the extension itself to work. I suspect I would need to add
private-libandprivate-binso the sandbox can access those, as well as some permissions for the TCP listener...And before I go down that rabbit-hole, I figured I should see if my approach here is even a good one. That is, my idea here is to run the nvim instance inside the same sandbox as firefox by changing firenvim's shell script from
exec nvimtoexec firejail --join=firefox nvim. Should I be approaching this differently? Or am I just a couple more whitelists away from success?@rusty-snake commented on GitHub (Oct 28, 2019):
Does it work with
--noprofile?@rusty-snake commented on GitHub (Dec 14, 2019):
@b33rcity
I'm closing here due to inactivity, please fell free to reopen if you have more questions.