
465 P.2d 734 (1970)
Andrew Albert NEWTON, Jr., Appellant,
v.
Hoyt C. CUPP, Warden, Oregon State Penitentiary, Respondent.
No. 67914.
Court of Appeals of Oregon, Department 2.
Submitted on Briefs January 26, 1970.
Decided February 26, 1970.
*735 Andrew Albert Newton, Jr., in pro. per.
Lee Johnson, Atty. Gen., and Jacob B. Tanzer, Sol. Gen., Salem, for respondent.
Before SCHWAB, C.J., and LANGTRY and FOLEY, JJ.
FOLEY, Judge.
Petitioner is a prisoner in the Oregon State Penitentiary under two concurrent sentences of 10 and 5 years. The validity of these sentences is not contested in these proceedings. Without the aid of counsel he filed a petition for a writ of habeas corpus alleging that he is a Negro and has been discriminated against while in the custody of defendant.
He alleged that in a pending assault felony case against him in Marion County Circuit Court, Judge Val D. Sloper had denied his motions before he "had a chance to describer (sic) or explain * * * [them]" and that Judge Sloper held him in contempt of court when "the only thing * * * [he] was trying to do, was protect his rights in court." He also charged that while he was taken to and from the county courthouse the deputy sheriffs subjected him to mental harassment; that he and another Negro have been charged with assault and battery on prison guards, but white men who did the same thing have not been prosecuted; that he has been ordered into the security and isolation building pending trial of the felony assault charge; that his mother has been barred from visiting him in the security and isolation building; and that his mail has been held up "for quite sometime." He states these allegations constitute cruel and unusual punishment. The trial court, Judge Douglas L. Hay, peremptorily dismissed the petition because it "fails to state facts sufficient to constitute grounds for relief * * *."
We agree with the trial court. None of the allegations relate to the legality of petitioner's present incarceration nor set forth cruel or unusual punishment under any constitutional sanctions. The purpose of the writ of habeas corpus is to inquire into the legality of imprisonment and not to supervise administration of the institution. ORS 34.310; Grenfell v. Gladden, 241 Or. 190, 193, 405 P.2d 532 (1965), cert. den. 382 U.S. 998, 86 S.Ct. 588, 15 L.Ed.2d 486 (1966); Gibbs v. Gladden, 227 Or. 102, 359 P.2d 540, cert. den. 368 U.S. 862, 82 S.Ct. 105, 7 L.Ed.2d 58 (1961).
Petitioner's other assignments are likewise without merit.
Affirmed.
