mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6296] Error fcopy: invalid ownership for file /etc/resolv.conf (chattr +i) #3237
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#3237
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 @ipaqmaster on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6296
Description
Describe the bug
Firejail can't start if its dealing with an immutable /etc/resolv.conf due to fcopy throwing an error trying to change its ownership.
Steps to Reproduce
Steps to reproduce the behavior
Launch any program with a $PATH that causes it to use firejail while /etc/resolv.conf has been hit with
chattr +i /etc/resolv.confchattr +i /etc/resolv.confExpected behavior
What you expected to happen
Launch my programs in firejail.
Actual behavior
What actually happened
Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin aterminal?
Software launches without issue.
Additional context
Any other detail that may help to understand/debug the problem
Environment
Linux distribution and version (e.g. "Ubuntu 20.04" or "Arch Linux")
Arch Linux
Firejail version (
firejail --version).0.9.72
If you use a development version of firejail, also the commit from which it
was compiled (
git rev-parse HEAD).NA
Checklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)@ghost commented on GitHub (Mar 27, 2024):
I
cannotreproduce on Arch Linux with firejail-git, using anext4file system. Theprivate-etcoption was significantly refactored after 0.9.72. Here Firejail doesn't list the requested file attributes, but it doesn't break after changing them in the real file system:What file system are you seeing this on? Does the issue still show with firejail-git?
@tredondo commented on GitHub (Oct 29, 2024):
I've just compiled from source on Fedora and I'm getting the same error:
Filesystem is btrfs. The error is avoided if I include
net nonein the local profile.