(self)
return True
Restore ld.so
Restore ld.so
Restore ld . so
def restore_ld(self):
        """Restore ld.so"""
        elf_loader = self.get_container_loader()
        futil_ldso = FileUtil(self._container_ld_so_orig)
        if futil_ldso.size() <= 0:
            Msg().err("Error: original loader not found or empty")
            return False

        if not futil_ldso.copyto(elf_loader):
            Msg().err("Error: in loader copy or file locked by other process")
            return False

        return True
def restore_ld ( self ) : elf_loader = self . get_container_loader ( ) futil_ldso = FileUtil ( self . _container_ld_so_orig ) if futil_ldso . size ( ) <= 0 : Msg ( ) . err ( "Error: original loader not found or empty" ) return False if not futil_ldso . copyto ( elf_loader ) : Msg ( ) . err ( "Error: in loader copy or file locked by other process" ) return False return True