mesa: set input read only on success