mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3761] w3m with w3m-img installed does not display images when on virtual console/framebuffer #2372
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#2372
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 @hedgehog29 on GitHub (Nov 18, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3761
w3m with w3m-img installed does not display images when on virtual console/framebuffer
In order to make it work i had to add those three lines to w3m.profile or w3m.local :
ignore nogroups
ignore private-dev
ignore private-etc
First two are easy to understand, the w3m must use the video group, and must access framebuffer device. I don't know why it needs access to other files in /etc/ and I don't know which file it is.
Could this be added to w3m.profile please? Thanks
It might be possible to restrict private-etc to a wider set of files including the needed ones.
@rusty-snake commented on GitHub (Nov 18, 2020):
Hi, you can use
firejail --build=w3m.profile w3m && grep private-etc w3m.profileto get aprivate-etcline containing all files accessed (open, openat, access, ...) by w3m.@hedgehog29 commented on GitHub (Nov 18, 2020):
This command results in this line:
private-etc hosts,mime.types,mailcap,terminfo,w3m,w3mconfig,zsh,login.defs,passwd,selinux,
After merging it with the one from /etc/firejail/w3m.profile, which gives:
private-etc resolv.conf,ssl,pki,ca-certificates,crypto-policies,hosts,mime.types,mailcap,terminfo,w3m,w3mconfig,zsh,login.defs,passwd,selinux,
it still does not work. It seems that w3m for some reason needs access to whole /etc/ directory, and this is not a good idea for web browser right?