Re: commandtest fails when executed with preloaded libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 06, 2011 at 02:56:21PM +0100, Diego Elio Pettenà wrote:
> In Gentoo we sandbox software installation with a software called
> sandbox, which basically is a preloaded library that wraps around a
> number of file access functions.
> 
> This method seems to break commandtest because the environment now has a
> LD_PRELOAD variable in it, which is not accounted for in the
> pre-generated log files.
> 
> Any idea how I should go about to solve this beside adding LD_PRELOAD to
> the log files themselves for Gentoo?

We should add

  unsetenv(LD_PRELOAD)
  unsetenv(LD_LIBRARY_PATH)

to commandtest.c, because although we want these env variables
in normal usage of the virCommandPtr APIs, they're not desirable
in this test case. Since commandtesthelper doesn't do anything
to the system beyond creating a logfile, I imagine it'd work
fine without gentoo's LD_PRELOAD

Daniel

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]