mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2853] Can't use 'less' on many files in own home directory - is that normal? #1781
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#1781
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 @flipsa on GitHub (Jul 10, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2853
Hey there,
I've just switched to a new distro (Parrot OS) which comes with firejail (and AppArmor) preinstalled. While I appreciate the move to more security in general, I was pretty surprised to find out that it blocks me from reading many of the files in my home directory with the 'less' pager ('permission denied'), while other ways of accessing the file contents work fine (editors like vim, nano, or even just 'cat'). I'm still trying to wrap my head around what exactly is going on, but i think the reason for the permission errors come from /etc/firejail/disable-programs.profile.
Is this really the intended behaviour or is my system misbehaving? What benefit is there in blocking a specific app like less from even reading a file that belongs to me and is in my own home directory, while other programs can display and even modify the same files just fine?
Can anybody shed some light please?
Thanks!
@rusty-snake commented on GitHub (Jul 10, 2019):
less: is firejailed by default after running firecfg
cat: hasn't a firejail profile
vim, nano: must be enabled by the user
May helpfull for future understanding:
firejail --list: list all running firejail sandboxeswhich PROGRAM/where PROGRAM: see what be execute when running PROGRMfirecfg --list/ls -l /usr/local/bin | grep firejail: list all programs how are firejailed by default when starting.@flipsa commented on GitHub (Jul 10, 2019):
Thanks @rusty-snake for your answer, that clears things up a bit.
As a follow up question in regards to ease of use / convenience: I do work at lot in the terminal, and viewing files (esp the ones in my own directory) is a very common occurence. Given that, what is the suggested way of dealing with that use-case without punching too big / too many holes into firejail? Does one allow (whitelist ?) individual files whenever one notices a permission denied error? Is there another / better way? Just trying to find out how to i) make use of firejail, while ii) don't interrupting my work-flow every few minutes. Is there something like a best-practice document?
@Vincent43 commented on GitHub (Jul 10, 2019):
I would recommend disabling less in our
firecfg.config@rusty-snake commented on GitHub (Jul 10, 2019):
@flipsa
firejail --noblacklist="${HOME}/.foo/bar less .foo/bar~/.config/firejail/less.local:include disable-programms.incin /etc/firejail/less.profile@flipsa commented on GitHub (Jul 10, 2019):
That answers my question - closing this issue as solved.
Thanks to both of you!
@Vincent43 commented on GitHub (Jul 10, 2019):
Alternatively we may remove
include disable-common.incandinclude disable-programs.incfrom less profile. Maybe make all${HOME}except.lesshstread-only?@Vincent43 commented on GitHub (Jul 10, 2019):
I changed this in
ef97d0c5d2