¶2Frederick M. Brosio, Jr., and Katherine M. Lunsford, Asst. U.S. Attys., Los Ange-les, Cal., for defendants-appellees.
¶3Before PREGERSON, REINHARDT and HALL, Circuit Judges.
¶5Badea, a former inmate of the Federal Prison Camp at Lompoc, California, brought a civil rights action against the warden and two prison officials for their denial of his repeated requests for placement in a community treatment center.1 His complaint sought declaratory and in-junctive relief, and compensatory and punitive damages. The district court referred Badea’s case to a magistrate, who concluded that Badea could properly raise his claims only through a habeas corpus proceeding and not through a civil rights action. The magistrate recommended dismissing the action pursuant to Fed.R.Civ.P. 12(b)(6) for failure to state a claim upon which relief may be granted. The district court adopted the magistrate’s findings, conclusions, and recommendations, and dismissed the case.
¶6Badea raises several claims of error. He argues first that the district court erred in refusing to transfer his case to another judge who had recently presided over a similar case. He then argues that the district court inadequately considered his objections to the magistrate’s report and erred in failing to provide him with a statement of his complaint’s deficiencies before dismissing the case. Next he appeals the district court’s conclusion that his proper avenue of relief was through habeas corpus. Finally, he argues that the facts are sufficient to state a claim upon which relief may be granted. We reverse because, regardless whether Badea initially should have filed a habeas petition rather than a civil rights action, his subsequent parole from prison makes his pursuit of a civil rights action proper.
¶7I.
¶8Habeas corpus proceedings are the proper mechanism for a prisoner to challenge the “legality or duration” of confinement. Preiser v. Rodriguez, 411 U.S. 475, 484, 93 S.Ct. 1827, 1833, 36 L.Ed.2d 439 (1973). A civil rights action, in contrast, is the proper method of challenging “conditions of ... confinement.” Id. at 498-99, 93 S.Ct. at 1840-41. The parties dispute whether a transfer to a community treatment center would have constituted a change in length of confinement or conditions of confinement, and therefore whether Badea should have sought relief through a habeas petition or a civil rights complaint. See Braun v. Scott, 927 F.2d 1516 (9th Cir.1991) (ordering rehearing en banc); Brown v. Rison, 895 F.2d 533, 536 (9th Cir.1990). Because of the passage of time, we need not resolve that issue.
¶9Prior to the time that his appeal was heard, Badea was released on parole. Accordingly, he no longer seeks a transfer to a community treatment center. Any request for relief relating to an actual change in the duration or conditions of his confinement is now moot, and the claims that remain are properly asserted in a civil rights suit. See Bivens v. Six Unknown Named Agents of Federal Bureau of Narcotics, 403 U.S. 388, 91 S.Ct. 1999, 29 L.Ed.2d 619 (1971). Were we to affirm the district court, Badea would be unable to file a habeas petition to obtain the relief he is now seeking — monetary damages. Accordingly, we reverse and remand for the *575district court to consider the merits of Ba-dea’s civil rights claim.2
¶10II.
¶11Badea argues that the district court should have transferred his case to another judge who had heard a factually similar case involving different parties. This argument is without basis in the law. District court judges have “broad discretion” regarding the assignment or reassignment of cases. See United States v. Gray, 876 F.2d 1411, 1414 (9th Cir.1989), cert. denied, — U.S. -, 110 S.Ct. 2168, 109 L.Ed.2d 497 (1990); United States v. DeLuca, 692 F.2d 1277, 1281 (9th Cir.1982). “We do not review independently a district court’s determination of the scope and application of local rules and general orders because we give district courts broad discretion in interpreting, applying, and determining the requirements of their own local rules and general orders.” Gray, 876 F.2d at 1414. This case is therefore remanded to the same district judge for further proceedings.
¶12REVERSED AND REMANDED
¶17concurring and dissenting.
¶18Plaintiff’s complaint was dismissed below for failure to state a claim upon which relief could be granted. See Fed.R.Civ.P. 12(b)(6). Although I agree with the majority that any habeas claim possessed by Ba-dea is now moot, I do not agree that this case should be remanded, and I accordingly dissent.
¶19We clearly have the power to affirm, despite defective reasoning below, so long as the record is sufficient to sustain an alternative ground for the decision. See Helvering v. Gowran, 302 U.S. 238, 245, 58 S.Ct. 154, 157, 82 L.Ed. 224 (1937); Golden Nugget v. American Stock Exchange, 828 F.2d 586, 590 (9th Cir.1987); Charley’s Taxi Radio Dispatch v. Sida of Hawaii, Inc., 810 F.2d 869, 874 (9th Cir.1987); Seattle Times Co. v. Seattle Mailer’s Union No. 32, 664 F.2d 1366 (9th Cir.1982).
¶20In the instant case the record is sufficient to decide whether dismissal on the prison officials’ 12(b)(6) motion was appropriate. Since a 12(b)(6) motion is decided on the pleadings, we have before us all that the district court had before it, and all that the district court will have before it when the next 12(b)(6) motion is made.
¶21Moreover, remanding plaintiff’s case to force the district court to again consider whether plaintiff has stated a claim will accomplish nothing. Plaintiff alleges three bases for relief: that he was denied due process of law, that he was denied equal protection, and that prison officials violated regulations proscribing discrimination based on race or ethnicity. Plaintiff can not succeed on any of these three claims even if his allegations prove true.
¶22Plaintiff claims that his Fifth Amendment right to due process has been violated, but he alleges no facts that would support this claim.1 Plaintiff does allege that *576only minimal procedures were used in deciding not to admit him to the Community Treatment Center. However, the validity of these procedures is beyond our reach. For before this or any court can address a due process claim, the court must first find that a “liberty” or “property” interest of the plaintiff has been affected. Olim v. Wakinekona, 461 U.S. 238, 103 S.Ct. 1741, 75 L.Ed.2d 813 (1983); Hewitt v. Helms, 459 U.S. 460, 103 S.Ct. 864, 74 L.Ed.2d 675 (1983); Dorfmont v. Brown, 913 F.2d 1399, 1403 (9th Cir.1990); Toussaint v. McCarthy, 801 F.2d 1080 (9th Cir.1986), cert. den. 481 U.S. 1069, 107 S.Ct. 2462, 95 L.Ed.2d 871 (1987).
¶23Plaintiff has implicitly asserted that his liberty interest was slighted by the prison officials’ refusal to transfer him to a less restrictive environment. Yet it is clear under controlling authority that plaintiff’s desire for a less-restrictive environment within the correction system is not a cognizable liberty interest. There are two possible sources from which a liberty interest can arise; the Constitution itself and applicable law. Olim, 461 U.S. at 247-51, 103 S.Ct. at 1746-48; Hewitt, 459 U.S. at 468-471, 103 S.Ct. at 869-71; Toussaint, 801 F.2d at 1089. The Supreme Court directly addressed the question whether the transfer of a prisoner to a more restrictive environment impinges on a constitutionally created liberty interest in Hewitt. The Court held that such a transfer does not impinge on a liberty interest, even if the transfer imposes “severe hardships” on the prisoner. Hewitt, 459 U.S. at 467 & n. 7, 103 S.Ct. at 869 & n. 7; see also Toussaint, 801 F.2d at 1092. The defendants’ disinclination to transfer appellant to a less restrictive environment thus cannot be said to affect a constitutional “liberty” interest.
¶24The plaintiff might also have a liberty interest growing out of applicable statutes and regulations. See Hewitt, 459 U.S. at 469-471, 103 S.Ct. at 870-71. The question is whether these statutes and regulations do more than merely channel administrative discretion; they must be “explicitly mandatory.” Id. at 472, 103 S.Ct. at 871. In other words, “the ... law must direct that a given action will be taken or avoided only on the existence or nonexistence of specified substantive predicates.” Tous-saint, 801 F.2d at 1094.
¶25The statute and regulations at issue in this case are not explicitly mandatory. The statute provides:
The Bureau of Prisons shall, to the extent practicable, assure that a prisoner serving a term of imprisonment spends a reasonable part, not to exceed six months, of the last 10 per centum of the term to be served under conditions that will afford the prisoner a reasonable opportunity to adjust to and prepare for his re-entry into the community.
¶27Although the statute uses the word “shall,” it also uses the vague terms “to the extent practicable,” and “conditions that will afford the prisoner a reasonable opportunity.” Thus, the statute is considerably less than an explicit mandate that prisoners like the plaintiff be assigned to Community Treatment Centers. As this court has said before, “the word ‘shall’ alone is not sufficient. Rather, the liberty interest is created when the word ‘shall’ is used to mandate certain procedures.... ” Toussaint, 801 F.2d at 1098 (finding that procedures were mandated so that a liberty interest was created). Section 3624(c) refers to no procedures. It is instead a broadly worded statute setting forth a general policy to guide the prison system.
¶28Moreover, the courts look to regulations as well as statutes in considering whether applicable law provides a prisoner with a “liberty” interest. See Toussaint, 801 F.2d at 1097-1098. The prison regulations in issue do not support the existence of a liberty interest. For these regulations provide that prisoners like the plaintiff, prisoners who have state sentences lodged as detainers, are not ordinarily eligible for reassignment to Community Treatment Centers.
¶29Plaintiff also asserts that he has been denied equal protection under the equal protection component of Fifth Amendment *577due process. See Adams v. Howerton, 673 F.2d 1036, 1041 & n. 3 (9th Cir.) (the Fourteenth Amendment does not apply to the federal government, but the Fifth Amendment contains an equal protection component), cert. denied, 458 U.S. 1111, 102 S.Ct. 3494, 73 L.Ed.2d 1373 (1982). Plaintiff argues that the defendants violated his equal protection rights by administering prison regulations inequitably.
¶30Although no Ninth Circuit appellate precedent appears to be directly on point, other circuits and the central district have addressed the precise issue of inequitable administration. Two different standards have been used by these other courts; plaintiff has satisfied neither.
¶31The less-restrictive standard was articulated by the Second Circuit in Brady v. Town of Colchester, 863 F.2d 205, 216 (2d Cir.1988). In Brady, the court held that a plaintiff must charge an allegedly inequitable official not only with deliberately interpreting a statute against him, but also with singling him out for that interpretation. The Brady court found evidence sufficient to preclude summary judgment against plaintiff under this standard.
¶32In Arroyo Vista Partners v. County of Santa Barbara, 732 F.Supp. 1046 (C.D.Cal.1990) the district court relied on Brady, but actually applied a more stringent test. The court held that an equal protection plaintiff must do more than charge that the government has singled him out for undesirable treatment. The plaintiff must allege that he has been singled out on an impermissible basis.
¶33The Seventh Circuit has adopted a restrictive approach that seems equivalent to the standard used by the district court in Arroyo Vista Partners. In New Burnham Prairie Homes, Inc. v. Village of Burnham, 910 F.2d 1474, 1481-82 (7th Cir.1990), the Seventh Circuit affirmed a grant of summary judgment on an equal protection claim. The court reasoned that allegations of “[discrimination based merely on individual, rather than group, reasons will not suffice” for an equal protection claim. Since the New Burnham plaintiff had not alleged any group discrimination, he failed to state an equal protection claim.
¶34Under either the Brady or New Burn-ham approaches, plaintiffs equal protection claim fails. Plaintiff has given no indication, if he was “singled out,” that defendants’ decision was based on group discrimination. Moreover, plaintiff has given no indication that he was “singled out.” Rather, the defendants are alleged to have treated plaintiff in accord with general practice.2
¶35Plaintiff also contends that defendants have violated a prison regulation. This regulation provides: “Inmates may not be discriminated against on the basis of race, religion, nationality, sex, handicap, or political belief.” 28 C.F.R. § 551.90. Plaintiff has not alleged, for example, that a disproportionate number of Caucasian inmates have been transferred to Community Treatment Centers while other ethnic groups have fared less well. Such a course of administration would be prohibited by section 551.90. Instead, plaintiff has alleged that he has been treated in accord with the general rule. Since plaintiff has not alleged that he has been singled out, and has not alleged any broad-based differential treatment, he has not stated a claim that defendants violated section 551.90. To hold otherwise would be to rule that if a single Caucasian inmate serving a concurrent state sentence is transferred to a Community Treatment Center, every similarly *578situated inmate of a different ethnicity-must be transferred as well.3
¶36I would affirm the district court.