mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3833] archivers: issues due limiting file system access #2412
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#2412
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 @ghost on GitHub (Dec 17, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3833
While working on our archiver profiles I started to notice a few things I don't fully understand, or that don't seem to make sense IMO. This all started when I broke a test in a recent PR which prompted @reinerh to pose the question 'why is it not allowed to archive binaries?'. This should be possible - archiving binaries is a legitimate use-case IMO. So I started to drop
private-binfrom our archivers in #3832.That triggered the more generic question:
why do we impose file system limits in archiver profiles to begin with?Isn't doing so going to break (legitimate) user expectations when archiving stuff for a quick backup of their ${HOME}/.config for example? And what about backing-up /etc?Realizing it may be a bit over-the-top, I want to propose to drop a few options from the archiver tools to avoid such scenario's:
All input, thoughts, opinions etcetera on this topic is obviously wanted and very welcome.
@rusty-snake commented on GitHub (Dec 17, 2020):
We can do it like we did with meld. Meld has a legitimate use-case on the most parts of the file-system too.
@ghost commented on GitHub (Dec 17, 2020):
I created a preliminary PR implementing the suggested meld approach. Also added a note to explain the difference between loosening/tightening all archivers at once via archiver-common.local OR doing so per archiver in the relevant .local. Let's keep this open for a while so other people can voice their opinions.
@kmk3 commented on GitHub (Dec 27, 2020):
glitsj16 commented 11 days ago
Indeed, and considering that this is the default profile and not a hardened
alternative, I personally would only block things that aren't meant to be read
directly, like character devices in /dev. I have archived
${HOME}/.configand what not many times and having something like that fail without me noticing
(e.g.: due to a
whitelist) could mean loss of data.Ideally, it would be at least as simple as adding
ignore whitelist *+ignore blacklist *to the relevant profiles. I was thinking about a similarproblem this week: if there was a profile for
lsenabled by default, anyblacklist/whitelist would result in subtly wrong output being produced (like
x11 none==~/.Xauthorityappears to be owned by root), which could resultin much confusion since the profile would have to be
quiet.Yes; sometimes I use
tar czf etc.tar.gz /etcto quickly back it up beforereinstalling a distro.
So, considering the current profile:
These seem workable:
But I would drop this:
And these could be a problem when backing things up, especially if scripting
and/or many machines are involved:
rusty-snake commented 10 days ago
To add to that, when I started using firejail (in mid 2019 I think), I was
stunned at getting "file not found" when trying to diff files in /tmp with
Meld. It was because of
private-tmp, but it took me a while to figure thatout, as it was one of the first (if not the first) times I had to debug
firejail profiles.
@rusty-snake commented on GitHub (Mar 8, 2021):
Anything left here or can we close?
@ghost commented on GitHub (Mar 8, 2021):
Nothing left, closing time!