[tracker/tracker-1.8] libtracker-common: Allow querying process stats/limits



commit eec94c545adb5fc0317b28cb3b964d1f04e45960
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Dec 21 17:12:22 2016 +0100

    libtracker-common: Allow querying process stats/limits
    
    Modifying those is not allowed though.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776117

 src/libtracker-common/tracker-seccomp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-common/tracker-seccomp.c b/src/libtracker-common/tracker-seccomp.c
index c040535..ea9ced7 100644
--- a/src/libtracker-common/tracker-seccomp.c
+++ b/src/libtracker-common/tracker-seccomp.c
@@ -73,6 +73,8 @@ tracker_seccomp_init (void)
        ALLOW_RULE (getppid);
        ALLOW_RULE (gettid);
        ALLOW_RULE (exit);
+       ALLOW_RULE (getrusage);
+       ALLOW_RULE (getrlimit);
        /* Basic filesystem access */
        ALLOW_RULE (fstat);
        ALLOW_RULE (fstat64);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]