chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
core: fix build without libseccomp
[elogind.git]
/
src
/
core
/
execute.c
diff --git
a/src/core/execute.c
b/src/core/execute.c
index 1184777295b195030c49b9b35ddcf5393336d21e..4033470e5b704022aabcb83ee3135b626c9cd773 100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-2115,9
+2115,11
@@
void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
prefix, c->selinux_context);
if (c->syscall_filter) {
prefix, c->selinux_context);
if (c->syscall_filter) {
+#ifdef HAVE_SECCOMP
Iterator j;
void *id;
bool first = true;
Iterator j;
void *id;
bool first = true;
+#endif
fprintf(f,
"%sSystemCallFilter: \n",
fprintf(f,
"%sSystemCallFilter: \n",
@@
-2126,6
+2128,7
@@
void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
if (!c->syscall_whitelist)
fputc('~', f);
if (!c->syscall_whitelist)
fputc('~', f);
+#ifdef HAVE_SECCOMP
SET_FOREACH(id, c->syscall_filter, j) {
_cleanup_free_ char *name = NULL;
SET_FOREACH(id, c->syscall_filter, j) {
_cleanup_free_ char *name = NULL;
@@
-2137,6
+2140,7
@@
void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) {
name = seccomp_syscall_resolve_num_arch(PTR_TO_INT(id)-1, SCMP_ARCH_NATIVE);
fputs(strna(name), f);
}
name = seccomp_syscall_resolve_num_arch(PTR_TO_INT(id)-1, SCMP_ARCH_NATIVE);
fputs(strna(name), f);
}
+#endif
fputc('\n', f);
}
fputc('\n', f);
}