jail: add 'debug' extern variable to preload_seccomp
authorDaniel Golle <daniel@makrotopia.org>
Sun, 22 Nov 2020 22:50:22 +0000 (22:50 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Sun, 22 Nov 2020 23:04:09 +0000 (23:04 +0000)
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 <daniel@makrotopia.org>
jail/seccomp.c

index 4483c3340971a1562b39c57b3184c7cc02c937ee..c1b48e02342cf9b2f2519ac2d397052a9518267d 100644 (file)
@@ -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 };