[CRIU] [PATCH 1/4] crtools: preload libraries
Cyrill Gorcunov
gorcunov at gmail.com
Sat Nov 30 10:10:10 PST 2013
On Sat, Nov 30, 2013 at 09:43:53PM +0400, Andrey Vagin wrote:
> +static int cr_lib_add(char *path)
> +{
> + struct cr_lib *l;
> + cr_init_t *f_init;
> + void *h;
> +
> + h = dlopen(path, RTLD_LAZY);
> + if (h == NULL) {
> + pr_err("Unable to load %s: %s", path, dlerror());
> + return -1;
> + }
> +
> + f_init = dlsym(h, "cr_init");
> + if (f_init && f_init())
> + return -1;
goto err;
More information about the CRIU
mailing list