(self)
return False
Set all executables and libs to the ld.so absolute pathname
Set all executables and libs to the ld.so absolute pathname
Set all executables and libs to the ld . so absolute pathname
def patch_binaries(self):
        """Set all executables and libs to the ld.so absolute pathname"""
        if not self.check_container_path():
            self.restore_binaries()
        last_time = '0'
        patchelf_exec = self.select_patchelf()
        elf_loader = self.get_container_loader()
        cmd = [patchelf_exec, "--set-root-prefix", self._container_root, "#f"]
        self._walk_fs(cmd, self._container_root, self.BIN | self.LIB)
        newly_set = self.guess_elf_loader()
        if newly_set == elf_loader:
            try:
                last_time = str(int(time.time()))
            except ValueError:
                pass
            futil_time = FileUtil(self._container_patch_time)
            futil_path = FileUtil(self._container_patch_path)
            return (futil_time.putdata(last_time, 'w') and
                    futil_path.putdata(self._container_dir, 'w'))
        return False
def patch_binaries ( self ) : if not self . check_container_path ( ) : self . restore_binaries ( ) last_time = '0' patchelf_exec = self . select_patchelf ( ) elf_loader = self . get_container_loader ( ) cmd = [ patchelf_exec , "--set-root-prefix" , self . _container_root , "#f" ] self . _walk_fs ( cmd , self . _container_root , self . BIN | self . LIB ) newly_set = self . guess_elf_loader ( ) if newly_set == elf_loader : try : last_time = str ( int ( time . time ( ) ) ) except ValueError : pass futil_time = FileUtil ( self . _container_patch_time ) futil_path = FileUtil ( self . _container_patch_path ) return ( futil_time . putdata ( last_time , 'w' ) and futil_path . putdata ( self . _container_dir , 'w' ) ) return False