ExecContext *c = userdata;
_cleanup_strv_free_ char **l = NULL;
_cleanup_free_ char *t = NULL;
+#ifdef HAVE_SECCOMP
Iterator i;
void *id;
int r;
+#endif
assert(bus);
assert(reply);
assert(c);
+#ifdef HAVE_SECCOMP
SET_FOREACH(id, c->syscall_filter, i) {
char *name;
return -ENOMEM;
}
}
+#endif
strv_sort(l);
prefix, c->selinux_context);
if (c->syscall_filter) {
+#ifdef HAVE_SECCOMP
Iterator j;
void *id;
bool first = true;
+#endif
fprintf(f,
"%sSystemCallFilter: \n",
if (!c->syscall_whitelist)
fputc('~', f);
+#ifdef HAVE_SECCOMP
SET_FOREACH(id, c->syscall_filter, j) {
_cleanup_free_ char *name = NULL;
name = seccomp_syscall_resolve_num_arch(PTR_TO_INT(id)-1, SCMP_ARCH_NATIVE);
fputs(strna(name), f);
}
+#endif
fputc('\n', f);
}