[GH-ISSUE #3761] w3m with w3m-img installed does not display images when on virtual console/framebuffer #2372

Closed
opened 2026-05-05 09:03:14 -06:00 by gitea-mirror · 2 comments
Owner

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.

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.
Author
Owner

@rusty-snake commented on GitHub (Nov 18, 2020):

Hi, you can use firejail --build=w3m.profile w3m && grep private-etc w3m.profile to get a private-etc line containing all files accessed (open, openat, access, ...) by w3m.

<!-- gh-comment-id:729614686 --> @rusty-snake commented on GitHub (Nov 18, 2020): Hi, you can use `firejail --build=w3m.profile w3m && grep private-etc w3m.profile` to get a `private-etc` line containing all files accessed (open, openat, access, ...) by w3m.
Author
Owner

@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?

<!-- gh-comment-id:729751501 --> @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?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2372
No description provided.