search for: plugin_load_file

Displaying 4 results from an estimated 4 matches for "plugin_load_file".

2018 Nov 07
2
Re: guestfs_launch() fails when C application is started as a systemd service
...rked - I launched it with popen. > So it must be something to do with collectd and how it runs programs. > Is it using LD_PRELOAD trickery, or replacing libc, or using seccomp? If I understand the question correctly - it's about how collectd loads its plugins? If so it uses: static int plugin_load_file(const char *file, _Bool global) { void (*reg_handle)(void); int flags = RTLD_NOW; if (global) flags |= RTLD_GLOBAL; void *dlh = *dlopen*(file, flags); //... reg_handle = (void (*)(void))*dlsym*(dlh, "module_register"); //... *(*reg_handle)();* } Does this give an...
2018 Nov 07
0
Re: guestfs_launch() fails when C application is started as a systemd service
...gt; > So it must be something to do with collectd and how it runs programs. > > Is it using LD_PRELOAD trickery, or replacing libc, or using seccomp? > > If I understand the question correctly - it's about how collectd loads its > plugins? If so it uses: > > static int plugin_load_file(const char *file, _Bool global) { > void (*reg_handle)(void); > int flags = RTLD_NOW; > if (global) > flags |= RTLD_GLOBAL; > void *dlh = *dlopen*(file, flags); > //... > reg_handle = (void (*)(void))*dlsym*(dlh, "module_register"); > //... &g...
2018 Nov 08
2
Re: guestfs_launch() fails when C application is started as a systemd service
...to do with collectd and how it runs programs. > > > Is it using LD_PRELOAD trickery, or replacing libc, or using seccomp? > > > > If I understand the question correctly - it's about how collectd loads > its > > plugins? If so it uses: > > > > static int plugin_load_file(const char *file, _Bool global) { > > void (*reg_handle)(void); > > int flags = RTLD_NOW; > > if (global) > > flags |= RTLD_GLOBAL; > > void *dlh = *dlopen*(file, flags); > > //... > > reg_handle = (void (*)(void))*dlsym*(dlh, "modu...
2018 Nov 07
2
Re: guestfs_launch() fails when C application is started as a systemd service
Thank you, Rich, This was the issue indeed. export LIBGUESTFS_BACKEND=direct fixed it. The next step I tried was to integrate libguestfs in collectd virt plugin to collect this data automatically. In this case I'm having an unknown error in add_libvirt_dom() (same with add_domain) when it's invoking qemu-img to create overlay image. There is no difference between manual and service