[tracker/tracker-1.8] libtracker-common: Whitelist *64() stat/getdents syscalls
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-1.8] libtracker-common: Whitelist *64() stat/getdents syscalls
- Date: Thu, 15 Dec 2016 11:25:55 +0000 (UTC)
commit 61f70b72df497c239fe5ee322c74a0350dc1292a
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Dec 15 12:06:43 2016 +0100
libtracker-common: Whitelist *64() stat/getdents syscalls
Those variants may end up called depending on architecture and other
factors, there's no reason for those to be blacklisted.
https://bugzilla.gnome.org/show_bug.cgi?id=776117
src/libtracker-common/tracker-seccomp.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-seccomp.c b/src/libtracker-common/tracker-seccomp.c
index 3c3f449..4f0a3ba 100644
--- a/src/libtracker-common/tracker-seccomp.c
+++ b/src/libtracker-common/tracker-seccomp.c
@@ -65,11 +65,16 @@ tracker_seccomp_init (void)
ALLOW_RULE (exit);
/* Basic filesystem access */
ALLOW_RULE (fstat);
+ ALLOW_RULE (fstat64);
ALLOW_RULE (stat);
+ ALLOW_RULE (stat64);
ALLOW_RULE (statfs);
+ ALLOW_RULE (statfs64);
ALLOW_RULE (lstat);
+ ALLOW_RULE (lstat64);
ALLOW_RULE (access);
ALLOW_RULE (getdents);
+ ALLOW_RULE (getdents64);
ALLOW_RULE (readlink);
ALLOW_RULE (readlinkat);
ALLOW_RULE (utime);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]