mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #4545] Error fcopy: invalid ownership for file /etc/resolv.conf (systemd-resolved) #2698
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#2698
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 @crocket on GitHub (Sep 14, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4545
I want to run a sandboxed program with
--private-etc=fileresults inbecause
Let's say owner and group are
xxxwhich is neither root nor a regular user that runs my desktop environment.A workaround is
Version
OS: Gentoo Linux
Relates to:
@kmille commented on GitHub (Nov 27, 2023):
I don't know what changed, but my
signal-desktopsuddenly is also broken:In
signal-desktop.profile, there isTemporary fix is to add
ignore private-etcin~/.config/firejail/signal-desktop.local.@kmk3 commented on GitHub (Nov 27, 2023):
What is the firejail version and distribution name/version?
What is the output of
ls -l /etc/resolv.conf?Does it happen with firejail-git?
@kmille commented on GitHub (Nov 27, 2023):
I'm running
firejail version 0.9.72on Arch-Linux. By the way the same happened for Nextcloud client.UPDATE:
Nothing changes if I use firejail-git (0.9.72.r740.g8f55f6c9a-1). I'm a bit suprised that tag 0.9.72 if from Jan 2023 ...
UPDATE2:
Thunderbird also doesn't start. Seems like my whole system is affacted. Am I the only one? I ignore private-etc in my globals.conf for now
@tredondo commented on GitHub (Oct 29, 2024):
Is #6296 the same error?
@kmille commented on GitHub (Nov 13, 2024):
Hmm. The problem came up after the latest update:
Thunderbird and signal also broke. Adding
ignore private-etctoglobals.localfixes the problem.@kmk3 commented on GitHub (Nov 14, 2024):
Update of what?
What is the version before and after?
It appears that the code expects /etc/resolv.conf to be a symlink to
/run/systemd/resolve/resolv.conf, which is not the case above.
Does it work with the following patch?
@kmille commented on GitHub (Nov 14, 2024):
I will check the patch later, thanks!
@kmille commented on GitHub (Nov 14, 2024):
The patch works, thanks! Should we close this?
UPDATE: Btw: this was actually a misconfiguration... Fixed it (but unrelated)
@kmk3 commented on GitHub (Nov 15, 2024):
Thanks for testing.
I think I'll close it with the patch.
Could you clarify?
Having it as a normal file seems like a valid configuration.
From systemd-resolved(8):
Also, any idea how /etc/resolv.conf ended up as a normal file but still owned
by systemd-resolve?
Did you manually point it to /var/run instead of /run?
AFAIK distributions with systemd do not use /var/run.
@kmille commented on GitHub (Nov 15, 2024):
True. But I exepcted it to be a symlink to the systemd-resolved stub.
No. Part of the "misconfiguration"...
No particular reason. The docs also link to
/run. I will change it on my side.✌️
@kmk3 commented on GitHub (Jul 9, 2025):
Yes, good catch.