void-packages/srcpkgs/tracker-miners/patches/fix-musl-missing-include.patch
oreo639 5c633c231e tracker-miners: enable landlock
Landlock is a method of unprivileged sandboxing to restrict, for example, fs
access for certian processes. It requires linux5.13+ along with landlock
being enabled in the kernel.

The latter has been the case since 2020 661f17ea74
however, those using older kernels will no longer be able to use tracker-miners.

This will make the gnome-music and gnome-photos unusable on such kernels.
2024-04-17 18:35:50 -07:00

10 lines
258 B
Diff

--- a/src/libtracker-miners-common/tracker-landlock.c
+++ b/src/libtracker-miners-common/tracker-landlock.c
@@ -28,6 +28,7 @@
#include <linux/landlock.h>
#include <sys/prctl.h>
#include <sys/syscall.h>
+#include <unistd.h>
#include "tracker-debug.h"