mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4927] broken man.profile in 0.9.68 #2821
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#2821
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 @hyder365 on GitHub (Feb 10, 2022).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4927
Description
Using firejail 0.9.68 on Arch Linux with "firecfg" run after the upgrade, I'm no longer able to view man pages with the man command. The issue is likely that "man" can no longer spawn the PAGER process. "man ls" prints the man page all at once without piping it to more/less. Running "man ls | less" works fine.
Steps to Reproduce
Install firejail, use the mandoc package (rather than GNU man, may be related) for the "man" command, and run it.
Expected behavior
Paging through a man page.
Actual behavior
Man page is printed all at once.
Behavior without a profile
Works normally.
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)@reinerh commented on GitHub (Feb 10, 2022):
Hm, I can't reproduce this with firejail 0.9.68 in Debian.
I tried it with man from man-db and mman from mandoc (I used
firejail man ls).firecfg.config contains a comment that
lessbreaks man. Are you sure less is not firejailed by default in your setup?The man profile also contains no
private-bin, which would prevent spawning binaries that are not listed. Do you have aman.localfile?@hyder365 commented on GitHub (Feb 10, 2022):
There's no "less" symlink in /usr/local/bin with the other firejailed programs, and "which less" returns /sbin/less.
Nothing in ~/.config/firejail is related to less or man.
I just confirmed the same problem on a separate but similar Arch laptop with mandoc and no ~/.config/firejail directory.
edit to add: I get an error like this too:
man: /usr/share/man/man8/ntpd.8.gz: SYSERR: mkstemp: /tmp/man.XXXXrVTZqh: Read-only file system
But /tmp is of course not read-only, and calling "man" from the installed binary path rather than with firejail works fine.
@reinerh commented on GitHub (Feb 10, 2022):
Ah, the man.profile has
read-only /tmp. It looks like your man program tries to save a temporary file in/tmp.You can fix this by adding
ignore read-only /tmpto man.local.But I'm wondering why this happens on your system and not on mine.
I tested with mandoc 1.14.6 and man-db 2.10.0.
@rusty-snake commented on GitHub (Feb 10, 2022):
cc @hlein
https://github.com/gentoo/gentoo/pull/24102/commits/1c49f0ec610e8dc66f94756711d15fcb14d28852#diff-95e09230bc946491c552d0240ab3baa07dc9f2a6f4196998d865f3902094b6ff
@hlein commented on GitHub (Feb 10, 2022):
Hah, yes I think I had done that or picked it up from somewhere.
firejail mandoes indeed error on Gentoo, but for different reasons than @hyder365 reports on Arch:So, I disabled man in Gentoo's
firecfg.configin my latest package update. But I hadn't yet investigated to see if I could figure out what changes toman.profilecould fix it.Meanwhile,
firejail lessworks but also doesn't.firejail less largefiledoes not error, and you can pageup/down, search, etc. But^Cis not caught (causes less to exit). So I suspect again/also, terminal related.@hyder365 commented on GitHub (Feb 11, 2022):
Thanks. It looks like mandoc creates files in /tmp by default, on OpenBSD as well as Linux.
@netblue30 commented on GitHub (Feb 14, 2022):
Bug/no bug? Would it be a good idea to remove man from firecfg.config, so it is not enabled by default?
@rusty-snake commented on GitHub (Feb 14, 2022):
At least
read-only /tmpshould be remove.