nixpkgs/pkgs/by-name/lo/localsearch/tracker-landlock-nix-store-permission.patch
Bobby Rong bd9782dc89
localsearch: Renamed from tracker-miners
The project renamed in 3.8.

This commit is done by hand.
2024-10-14 20:54:11 +08:00

16 lines
634 B
Diff

diff --git a/src/libtracker-miners-common/tracker-landlock.c b/src/libtracker-miners-common/tracker-landlock.c
index 6d4510be1..1de5d5a90 100644
--- a/src/libtracker-miners-common/tracker-landlock.c
+++ b/src/libtracker-miners-common/tracker-landlock.c
@@ -184,6 +184,10 @@ gboolean
tracker_landlock_init (const gchar * const *indexed_folders)
{
TrackerLandlockRule stock_rules[] = {
+ { "/nix/store",
+ (LANDLOCK_ACCESS_FS_EXECUTE |
+ LANDLOCK_ACCESS_FS_READ_FILE |
+ LANDLOCK_ACCESS_FS_READ_DIR) },
/* Allow access to the executable itself */
{ LIBEXECDIR "/tracker-extract-3",
LANDLOCK_ACCESS_FS_READ_FILE |