mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-02 17:12:39 +00:00
tracker-miners: fix reproducibility issue for landlock
If landlock feature is enabled there is buildpath leakage again. This is because in-tree rules get included. Disable the in-tree check to avoid it. Signed-off-by: Markus Volk <f_l_k@t-online.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
9c00bf1776
commit
777d42c854
@ -92,6 +92,27 @@ index 6e5883288..04750f82b 100644
|
|||||||
'-DLIBEXECDIR="@0@"'.format(get_option('prefix') / get_option('libexecdir')),
|
'-DLIBEXECDIR="@0@"'.format(get_option('prefix') / get_option('libexecdir')),
|
||||||
],
|
],
|
||||||
install: true,
|
install: true,
|
||||||
|
diff --git a/src/libtracker-miners-common/tracker-landlock.c b/src/libtracker-miners-common/tracker-landlock.c
|
||||||
|
index 27e7db65b..3021343eb 100644
|
||||||
|
--- a/src/libtracker-miners-common/tracker-landlock.c
|
||||||
|
+++ b/src/libtracker-miners-common/tracker-landlock.c
|
||||||
|
@@ -276,7 +276,7 @@
|
||||||
|
LANDLOCK_ACCESS_FS_READ_DIR);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-
|
||||||
|
+#if 0
|
||||||
|
current_dir = g_get_current_dir ();
|
||||||
|
|
||||||
|
/* Detect running in-tree */
|
||||||
|
@@ -296,7 +296,7 @@
|
||||||
|
in_tree_rules[i].flags);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-
|
||||||
|
+#endif
|
||||||
|
/* Add user cache for readonly databases */
|
||||||
|
#ifdef MINER_FS_CACHE_LOCATION
|
||||||
|
add_rule (landlock_fd, MINER_FS_CACHE_LOCATION,
|
||||||
--
|
--
|
||||||
2.41.0
|
2.41.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user