[tracker-miners/tracker-miners-2.3] libtracker-miners-common: Distcheck fix



commit d0e79025ed8339fa4944a0d8621846bfabc73020
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Feb 18 23:58:48 2020 +0100

    libtracker-miners-common: Distcheck fix
    
    Make sched_setattr error out softly (return EPERM, instead of a terminating
    SIGSYS signal), so we can more or less cope with that syscall, added in
    recent glib.
    
    This indirectly relies on https://gitlab.gnome.org/GNOME/glib/issues/2039
    being fixed, and glib not triggering g_error() on that syscall failing.
    Let's double down on EPERM being possibly returned ATM, glib master still
    currently breaks tracker-extract, and it won't cause ill effects on older
    glib.

 src/libtracker-miners-common/tracker-seccomp.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/libtracker-miners-common/tracker-seccomp.c b/src/libtracker-miners-common/tracker-seccomp.c
index cea992767..6e6218126 100644
--- a/src/libtracker-miners-common/tracker-seccomp.c
+++ b/src/libtracker-miners-common/tracker-seccomp.c
@@ -114,6 +114,7 @@ tracker_seccomp_init (void)
        ALLOW_RULE (rt_sigprocmask);
        ALLOW_RULE (sched_yield);
        ALLOW_RULE (sched_getaffinity);
+       ERROR_RULE (sched_setattr, EPERM);
        ALLOW_RULE (nanosleep);
        ALLOW_RULE (waitid);
        ALLOW_RULE (waitpid);


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