Closed curiosityseeker closed 1 year ago
On what directory are the AUR repos stored?
On what directory are the packages built?
That depends. If you install an AUR package with git clone ...
and makepkg -s
it'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
.
@curiosityseeker on Mar 9:
That depends. If you install an AUR package with
git clone ...
andmakepkg -s
it's really up to you where you want to store it.
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:
ignore quiet
ignore include sha256sum.local
ignore include globals.local
What is the output of makepkg
?
FTR https://github.com/netblue30/firejail/commit/7176e6324d444b681b822f2a29c15d61c7f92677
They got added to firecfg just recently.
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.
Well, as mentioned in the OP, I've tried both AUR helpers (-> ~/.cache) and git clone
(-> individual paths in ~).
Also, when adding the following to ~/.config/firejail/sha256sum.local:
ignore quiet ignore include sha256sum.local ignore include globals.local
What is the output of
makepkg
?
EDITED: Need some more debugging.
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.
... Error mount: fs_etc.c:142 fs_resolvconf: No such file or directory
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.
Update: I found the culprit. I have
dns 127.0.0.1
in my globals.local
to make sure that every network request goes through dnscrypt-proxy. Removing that rule in hasher-common.local
fixes the issue although I don't know why. (Note: the blocklists in dnscrypt-proxy didn't block anything related)
Update: I found the culprit. I have dns 127.0.0.1
I'm more and more convinced this is #5650. Can you try the patch from that?
Wow! I applied your patch, removed ignore dns 127.0.0.1
in hasher-common.local - and got no errors!
So just to make sure: hasher-common.local now contains
#ignore dns 127.0.0.1
include globals.local
include disable-common.inc
and my globals.local
contains dns 127.0.0.1
.
I have a pretty similar setup, also using dns 127.0.0.1
in 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.
Duplicate of #5650.
(Closing as a duplicate)
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
makepkg
is not sandboxed by default, buthasher-common.profile
is called.Additional context
Commenting
private-etc
inhasher-common.profile
fixes the issue. I haven't had the time to investigate if a more fine-grainedprivate-etc
rule can be applied.Environment
Checklist
private-etc
inhasher-common.profile
fixes the issue.https://github.com/netblue30/firejail/issues/1139
)browser-allow-drm yes
/browser-disable-u2f no
infirejail.config
to allow DRM/U2F in browsers.--profile=PROFILENAME
to set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/program
``` output goes here ```
Output of
LC_ALL=C firejail --debug /path/to/program
``` output goes here ```