mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6345] yelp: cannot open man pages #3245
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#3245
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 @Rosika2 on GitHub (May 17, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6345
Info:
OS: Linux Lite 6.2
firejail version: 0.9.72
Hi all, 👋
I just noticed there´s a
yelp.profileavailable for firejail.yelpprovides an interesting alternative for viewing man pages. However the command (example):firejail yelp man:lsdidn´t provide the results as expected.The yelp GUI opened up but couldn´t access the respective file. It said:
"Document not found. The URI ´man:ls´ does not point to a valid page." 😞
However: the command
firejail --noprofile yelp man:lsworked well. The man pages forlswere flawlessly displayed in the yelp GUI. That was just for experimental reasons, of course.I already copied the the
yelp.profileto~/.config/firejailin order to change (some of) the options stored therein but frankly I don´t know where to start.Surely the profile needs some modification.
Thanks a lot for your help in advance.
Many greetings from Rosika 🙂
P.S.:
the terminal´s output was:
@ghost commented on GitHub (May 17, 2024):
The yelp.profile assumes man pages are located under
/usr/share/manand whitelists that path accordingly. DoesLinux Litestore these in the same location? If not you will need to whitelist the path it uses.HTH
@Rosika2 commented on GitHub (May 18, 2024):
Hi @glitsj16, 👋
thanks for your reply.
In fact it does. I looked it up. Nothing unusual here, it seems.
Seems curious. I don´t know why
yelp.profilewouldn´t work then. 🤔Still: thanks a lot and many greetings from Rosika 🙂
@ghost commented on GitHub (May 18, 2024):
Ah well, that would have been too easy. So that leaves the manual trial and error routine. Try commenting all the
include disable-foo.inclines,private-binandprivate-tmpand hopefully that can identify the culprit(s). Work your way up from there and post your observations so we can assist. There's also our IRC channel.Enjoy your weekend.
@Rosika2 commented on GitHub (May 18, 2024):
Hi @glitsj16, 👋
thanks for your reply.
O.K., I´ll try to follow the path you suggested.
As soon as I come up with anything substantial (perhaps even a soultion) I´ll post it here.
In the meantime: goodybe and have a nice weekend as well.
Cheers from Rosika 🙂
P.S.:
Thanks also for the hint regarding the IRC channel.
@Rosika2 commented on GitHub (May 18, 2024):
Hi again @glitsj16, 👋
I tried what you suggested but those ones weren´t the culprit.
I tried some options more and found out that it´s line 58 which has to be commented out:
I left everything else unchanged.
Now
yelpcan access the man pages withinfirejail. 😃I´m just wondering: Isn´t it a bit much that gets commented out this way?
It´s just one line but affects a lot of of options... 🤔
Many greetings from Rosika 🙂
@ghost commented on GitHub (May 18, 2024):
Nice find.
That's correct. Ideally, now that you've determined something is
missingfromprivate-etc, the best option would be to track down what that is and add that.With the newly introduced @groups syntax for private-etc (only in git for now) this issue could go away. But while you're on
0.9.72, try adding (some of) the below 'usual suspects' and check if that kicks yelp into working mode while maintaining a restrictive sandbox:HTH
@Rosika2 commented on GitHub (May 19, 2024):
Hi @glitsj16, 👋
I followed your suggestion and I did it this way:
In
yelp.localI erased one entry at a time, e.g.group,ld.so.confetc.But yelp didn´t work, no matter which of the entries I kicked out.
While commenting out the complete line with all of it´s entries works it must be a combination of 2 or more entries then. 🤔
Seems hard to find out the culprits.
For the time being it seems commenting out the line completely is mandatory.
Thanks again and many greetings from Rosika 🙂
@ghost commented on GitHub (May 19, 2024):
Agreed, that can become a rabbit-hole. And it's not 'insecure' without private-etc. Your OS and yourself are still there to protect sensitive things under /etc too. As I've mentioned, for me on firejail-git (with the refactored private-etc etcetera) yelp works fine. So let's hope it's only a matter of time before 0.9.74 reaches you and things sort themselves out :)
Thanks for your response. We'll keep this open for now.
@Rosika2 commented on GitHub (May 19, 2024):
@glitsj16, 👋
thanks so much for your feedback.
That´s good to know.
I might still follow some kind of "gradual reintroduction" approach:
Instead of removing one entry at a time, I could try gradually reintroducing entries back into
yelp.localand testing yelp after each addition. This might help identify which specific combination of entries causes the problem.Just an idea. Not sure if it will lead to anything. 😉
In the meantime: thanks again and have nice Sunday.
Cheers from Rosika 🙂