mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4647] firefox: cannot run gv and gs (GhostScript) #2737
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#2737
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 @vinc17fr on GitHub (Oct 27, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4647
Description
When I run
gvon a PostScript file from thefirefoxprofile, it hangs, taking 100% CPU time. If I rungsdirectly on the PostScript file, it fails, and this is the cause.Note that
gvis useful to open PostScript files on the web (this was how I found this issue), e.g. via Firefox, hence thefirefoxprofile.Steps to Reproduce
file.psin theDownloadsdirectory.LC_ALL=C firejail --profile=firefox gv ~/Downloads/file.ps.LC_ALL=C firejail --profile=firefox gs ~/Downloads/file.ps.Expected behavior
The contents of the PostScript document should appear in the window.
Actual behavior
At step 2, a
gvwindow appears. The page numbers in the left pane are correct, showing that the PostScript file could have been read. But the document pane remains blank and there's a running throbber;gvtakes 100% CPU time, apparently waiting for data fromgs, which died.At step 3,
gsdies with the errorGPL Ghostscript 9.53.3: Can't find initialization file gs_init.ps.. To make it work, I need to whitelist both/usr/share/ghostscriptand/usr/share/color/icc/ghostscript.Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin a terminal?No issues.
Environment
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/program@vinc17fr commented on GitHub (Oct 27, 2021):
BTW, rather independently of this issue,
/usr/share/gvshould be whitelisted for security (it contains a safe workdir forgs, and who knows what happens if this directory is not available:gvis expected tochdirto it).@rusty-snake commented on GitHub (Oct 30, 2022):
firefox.profile is made to run firefox in it and nothing else.
IMHO we should close here.