Blame SOURCES/0001-libtracker-common-whitelist-openat.patch

6af54d
From f2a784e2fc28b169b2c70ed9dd72d9aaa9dec68a Mon Sep 17 00:00:00 2001
6af54d
From: Felipe Borges <felipeborges@gnome.org>
6af54d
Date: Tue, 9 May 2017 15:17:27 +0200
6af54d
Subject: [PATCH] libtracker-common: Whitelist openat()
6af54d
6af54d
tracker-extract-iso depends on libosinfo, which needs the
6af54d
openat system call.
6af54d
---
6af54d
 src/libtracker-common/tracker-seccomp.c | 2 ++
6af54d
 1 file changed, 2 insertions(+)
6af54d
6af54d
diff --git a/src/libtracker-common/tracker-seccomp.c b/src/libtracker-common/tracker-seccomp.c
6af54d
index 1af380c93..e02dc2fd9 100644
6af54d
--- a/src/libtracker-common/tracker-seccomp.c
6af54d
+++ b/src/libtracker-common/tracker-seccomp.c
6af54d
@@ -159,6 +159,8 @@ tracker_seccomp_init (void)
6af54d
 	ALLOW_RULE (getsockname);
6af54d
 	ALLOW_RULE (getpeername);
6af54d
 	ALLOW_RULE (shutdown);
6af54d
+        /* Needed by libosinfo (tracker-extract-iso) */
6af54d
+        ALLOW_RULE (openat);
6af54d
 
6af54d
 	/* Special requirements for socket/socketpair, only on AF_UNIX/AF_LOCAL */
6af54d
 	if (seccomp_rule_add (ctx, SCMP_ACT_ALLOW, SCMP_SYS(socket), 1,
6af54d
-- 
6af54d
2.12.2
6af54d