diff options
Diffstat (limited to 'community/tracker-miners/fix-seccomp.patch')
-rw-r--r-- | community/tracker-miners/fix-seccomp.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/community/tracker-miners/fix-seccomp.patch b/community/tracker-miners/fix-seccomp.patch deleted file mode 100644 index 2243640f2f0..00000000000 --- a/community/tracker-miners/fix-seccomp.patch +++ /dev/null @@ -1,29 +0,0 @@ -https://gitlab.gnome.org/GNOME/tracker-miners/merge_requests/128 - -diff --git a/src/libtracker-miners-common/tracker-seccomp.c b/src/libtracker-miners-common/tracker-seccomp.c -index c5e8871..cea9927 100644 ---- a/src/libtracker-miners-common/tracker-seccomp.c -+++ b/src/libtracker-miners-common/tracker-seccomp.c -@@ -138,7 +138,6 @@ tracker_seccomp_init (void) - /* Descriptors */ - ALLOW_RULE (close); - ALLOW_RULE (read); -- ALLOW_RULE (pread64); - ALLOW_RULE (lseek); - ALLOW_RULE (_llseek); - ALLOW_RULE (fadvise64); -@@ -209,6 +208,14 @@ tracker_seccomp_init (void) - SCMP_CMP(2, SCMP_CMP_MASKED_EQ, O_RDWR, O_RDWR)) < 0) - goto out; - -+ /* Syscalls may differ between libcs */ -+#if !defined(__GLIBC__) -+ ALLOW_RULE (rt_sigreturn); -+ ALLOW_RULE (readv); -+#else -+ ALLOW_RULE (pread64); -+#endif -+ - g_debug ("Loading seccomp rules."); - - if (seccomp_load (ctx) >= 0) { |