summaryrefslogtreecommitdiff
path: root/src/libtracker-common/tracker-seccomp.c
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2016-12-16 01:09:48 +0100
committerCarlos Garnacho <carlosg@gnome.org>2016-12-16 01:09:48 +0100
commit28601208782ca00e04c28e7087be4d42ca52dedc (patch)
tree2938e7d9426df67b3f8b7106db15e94ee04063c1 /src/libtracker-common/tracker-seccomp.c
parentfff1ba0adfb9ae052f091f858fc027ec267f5392 (diff)
downloadtracker-28601208782ca00e04c28e7087be4d42ca52dedc.tar.gz
libtracker-common: Whitelist clock_gettime/getres
Reported to trigger false positives on Ubuntu.
Diffstat (limited to 'src/libtracker-common/tracker-seccomp.c')
-rw-r--r--src/libtracker-common/tracker-seccomp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libtracker-common/tracker-seccomp.c b/src/libtracker-common/tracker-seccomp.c
index b052cbc83..cf5dac6bb 100644
--- a/src/libtracker-common/tracker-seccomp.c
+++ b/src/libtracker-common/tracker-seccomp.c
@@ -106,6 +106,8 @@ tracker_seccomp_init (void)
ALLOW_RULE (sysinfo);
ALLOW_RULE (prctl);
ALLOW_RULE (getrandom);
+ ALLOW_RULE (clock_gettime);
+ ALLOW_RULE (clock_getres);
/* Descriptors */
ALLOW_RULE (close);
ALLOW_RULE (read);