On 30 April 2013 13:16, Glauber Costa <[email protected]> wrote: > From: Glauber Costa <[email protected]> > To work around that, we can employ a trick to allow container creation right > now, as well as to avoid compatibility problems: we will resort to LD_PRELOAD > to load a schim that captures calls to the chown family of system calls and > applies the offset manually. > > Signed-off-by: Glauber Costa <[email protected]> [...] > +chown_preload_if_needed() > +{ > + [ -z "$UID_OFFSET" -o -z "$GID_OFFSET" ] && return > + > + export LD_PRELOAD=libvzchown.so
LD_PRELOAD can be stacked (say, LD_PRELOAD=lib1:lib2:lib3) and in case it was already set, it's better be kept. -- _______________________________________________ Devel mailing list [email protected] https://lists.openvz.org/mailman/listinfo/devel
