mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #5723] Arch Linux: Cannot install/update AUR packages (fs_resolvconf: No such file or directory) #3075
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#3075
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 @curiosityseeker on GitHub (Mar 9, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/5723
Description
See title of the issue.
Steps to Reproduce
Steps to reproduce the behavior
git clone ....andmakepkg -s.Expected behavior
What you expected to happen
Actual behavior
What actually happened
Behavior without a profile
makepkgis not sandboxed by default, buthasher-common.profileis called.Additional context
Commenting
private-etcinhasher-common.profilefixes the issue. I haven't had the time to investigate if a more fine-grainedprivate-etcrule can be applied.Environment
fb49f72999Checklist
private-etcinhasher-common.profilefixes the issue.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)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/program@kmk3 commented on GitHub (Mar 9, 2023):
On what directory are the AUR repos stored?
On what directory are the packages built?
@curiosityseeker commented on GitHub (Mar 9, 2023):
That depends. If you install an AUR package with
git clone ...andmakepkg -sit's really up to you where you want to store it.If you're using an AUR helper like paru , it is done in
~/.cache/paru.@kmk3 commented on GitHub (Mar 9, 2023):
@curiosityseeker on Mar 9:
Yes; I'm asking where they are on your system since that is where the errors
are happening. The paths could be currently blocked by an include profile.
Also, when adding the following to ~/.config/firejail/sha256sum.local:
What is the output of
makepkg?@rusty-snake commented on GitHub (Mar 9, 2023):
FTR
7176e6324dThey got added to firecfg just recently.
@curiosityseeker commented on GitHub (Mar 9, 2023):
Well, as mentioned in the OP, I've tried both AUR helpers (-> ~/.cache) and
git clone(-> individual paths in ~).EDITED: Need some more debugging.
@curiosityseeker commented on GitHub (Mar 9, 2023):
Sorry for the noise. The culprit was my
globals.local. I still don't understand why as it doesn't seem to include any blacklisted paths which look relevant here, though. But anyway, ignoring it solves the problem.@ghost commented on GitHub (Mar 9, 2023):
Hmm, longshot, but it could be #5650. Conditions seem to fit the bill, hasher-common.profile does have
net none. But nobody seems to have been able to reproduce it (yet). I've been using the patch mentioned in #5650 ever since I reported the issue and it WFM on Arch Linux.@curiosityseeker commented on GitHub (Mar 9, 2023):
Update: I found the culprit. I have
dns 127.0.0.1in my
globals.localto make sure that every network request goes through dnscrypt-proxy. Removing that rule inhasher-common.localfixes the issue although I don't know why. (Note: the blocklists in dnscrypt-proxy didn't block anything related)@ghost commented on GitHub (Mar 9, 2023):
I'm more and more convinced this is #5650. Can you try the patch from that?
@curiosityseeker commented on GitHub (Mar 9, 2023):
Wow! I applied your patch, removed
ignore dns 127.0.0.1in hasher-common.local - and got no errors!So just to make sure: hasher-common.local now contains
and my
globals.localcontainsdns 127.0.0.1.@ghost commented on GitHub (Mar 9, 2023):
I have a pretty similar setup, also using
dns 127.0.0.1in globals.local. That seems to be a part of what triggers the bug. We'll have to ask @netblue30 and/or @smitsohu to take a closer look at my patch. As we all know my C is rather limited so there might be better fixes.Anyway, thanks for taking the time to test!
Duplicate of #5650.
@kmk3 commented on GitHub (Mar 9, 2023):
(Closing as a duplicate)