From e935c0c043b12415fa36aca01cfc757cadb9fac4 Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Sun, 22 Nov 2020 22:50:22 +0000 Subject: [PATCH] jail: add 'debug' extern variable to preload_seccomp ujail's seccomp ld-preload support broke recently with Error relocating /lib/libpreload-seccomp.so: debug: symbol not found Fix that by adding a debug variable to seccomp.c. Fixes: be6da62 ("seccomp: silence 'unknown syscall' warnings") Signed-off-by: Daniel Golle --- jail/seccomp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jail/seccomp.c b/jail/seccomp.c index 4483c33..c1b48e0 100644 --- a/jail/seccomp.c +++ b/jail/seccomp.c @@ -21,6 +21,8 @@ #include "seccomp.h" #include "seccomp-oci.h" +int debug = 0; + int install_syscall_filter(const char *argv, const char *file) { struct blob_buf b = { 0 }; -- 2.30.2