Bug#983637: tracker-extract: Add newfstat() to syscall list

Julian Andres Klode jak at debian.org
Sat Feb 27 16:16:04 GMT 2021


Package: tracker-miners
Version: 2.3.5-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu hirsute ubuntu-patch
X-Debbugs-Cc: juliank at ubuntu.com

In Ubuntu, the attached patch was applied to achieve the following:

Fix tracker-extract crashing constantly with new glibc.

Thanks for considering the patch.

-- System Information:
Debian Release: bullseye/sid
  APT prefers hirsute
  APT policy: (500, 'hirsute'), (500, 'groovy-updates'), (500, 'groovy-security')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-14-generic (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en
-------------- next part --------------
diff -Nru tracker-miners-2.3.5/debian/patches/libtracker-miners-common-Add-newstatat-statat64-syscalls.patch tracker-miners-2.3.5/debian/patches/libtracker-miners-common-Add-newstatat-statat64-syscalls.patch
--- tracker-miners-2.3.5/debian/patches/libtracker-miners-common-Add-newstatat-statat64-syscalls.patch	1970-01-01 01:00:00.000000000 +0100
+++ tracker-miners-2.3.5/debian/patches/libtracker-miners-common-Add-newstatat-statat64-syscalls.patch	2021-02-27 13:13:59.000000000 +0100
@@ -0,0 +1,29 @@
+From b3fdbaf1ab23ce7191ace6db79575dfce5f90881 Mon Sep 17 00:00:00 2001
+From: Carlos Garnacho <carlosg at gnome.org>
+Date: Sun, 25 Oct 2020 15:37:13 +0100
+Subject: [PATCH] libtracker-miners-common: Add newstatat/statat64 syscalls
+
+These are done in recent glib versions, should be observed here.
+
+Origin: upstream, https://gitlab.gnome.org/GNOME/tracker-miners/-/commit/b3fdbaf1ab23ce7191ace6db79575dfce5f90881.patch
+Bug-Ubuntu: https://bugs.launchpad.net/bugs/1916323
+---
+ src/libtracker-miners-common/tracker-seccomp.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/src/libtracker-miners-common/tracker-seccomp.c b/src/libtracker-miners-common/tracker-seccomp.c
+index c0327eb08..01887e829 100644
+--- a/src/libtracker-miners-common/tracker-seccomp.c
++++ b/src/libtracker-miners-common/tracker-seccomp.c
+@@ -91,6 +91,8 @@ tracker_seccomp_init (void)
+ 	/* Basic filesystem access */
+ 	ALLOW_RULE (fstat);
+ 	ALLOW_RULE (fstat64);
++	ALLOW_RULE (fstatat64);
++	ALLOW_RULE (newfstatat);
+ 	ALLOW_RULE (stat);
+ 	ALLOW_RULE (stat64);
+ 	ALLOW_RULE (statfs);
+-- 
+GitLab
+
diff -Nru tracker-miners-2.3.5/debian/patches/series tracker-miners-2.3.5/debian/patches/series
--- tracker-miners-2.3.5/debian/patches/series	2020-10-09 11:13:36.000000000 +0200
+++ tracker-miners-2.3.5/debian/patches/series	2021-02-27 13:13:59.000000000 +0100
@@ -5,3 +5,4 @@
 dont_start_for_root.patch
 Don-t-immediately-restart-tracker-extract-on-SIGSYS.patch
 debian/Revert-build-Include-libdir-in-rpath.patch
+libtracker-miners-common-Add-newstatat-statat64-syscalls.patch


More information about the pkg-gnome-maintainers mailing list