diff options
-rw-r--r-- | src/system.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system.c b/src/system.c index bcd7e3c..87f2ebe 100644 --- a/src/system.c +++ b/src/system.c @@ -319,12 +319,12 @@ int sys_filter_load(struct db_filter_col *col) int flgs = 0; if (col->attr.tsync_enable) flgs |= SECCOMP_FILTER_FLAG_TSYNC; + else if (_support_seccomp_user_notif > 0) + flgs |= SECCOMP_FILTER_FLAG_NEW_LISTENER; if (col->attr.log_enable) flgs |= SECCOMP_FILTER_FLAG_LOG; if (col->attr.spec_allow) flgs |= SECCOMP_FILTER_FLAG_SPEC_ALLOW; - if (_support_seccomp_user_notif > 0) - flgs |= SECCOMP_FILTER_FLAG_NEW_LISTENER; rc = syscall(_nr_seccomp, SECCOMP_SET_MODE_FILTER, flgs, prgm); if (rc > 0 && col->attr.tsync_enable) /* always return -ESRCH if we fail to sync threads */ |