crun/libkrun-dlopen.patch

17 lines
685 B
Diff

Index: crun-0.18/src/libcrun/container.c
===================================================================
--- crun-0.18.orig/src/libcrun/container.c 2021-02-18 16:25:28.000000000 +0100
+++ crun-0.18/src/libcrun/container.c 2021-08-06 11:54:48.798850933 +0200
@@ -712,9 +712,9 @@
#endif
#if HAVE_DLOPEN && HAVE_LIBKRUN
- handle = dlopen ("libkrun.so", RTLD_NOW);
+ handle = dlopen ("libkrun.so.0", RTLD_NOW);
if (handle == NULL)
- return crun_make_error (err, 0, "could not load `libkrun.so`: %s", dlerror ());
+ return crun_make_error (err, 0, "could not load `libkrun.so.0`: %s", dlerror ());
args->exec_func = libkrun_do_exec;
args->exec_func_arg = handle;