We study equilibrium conditions between a static, spherically symmetric black hole and classical matter in terms of the radial pressure to density ratio pr/ρ=w(u), where u is the radial coordinate. It is shown that such an equilibrium is possible in two cases: (i) the well-known case w→-1 as u→uh (the horizon), i.e., "vacuum" matter, for which ρ(uh) can be nonzero; (ii) w→-1/(1+2k) and ρ∼(u-uh)k as u→uh, where k>0 is a positive integer (w=-1/3 in the generic case k=1). A noninteracting mixture of these two kinds of matter can also exist. The whole reasoning is local, hence the results do not depend on any global or asymptotic conditions. They mean, in particular, that a static black hole cannot live inside a star with nonnegative pressure and density. As an example, an exact solution for an isotropic fluid with w=-1/3 (that is, a fluid of disordered cosmic strings), with or without vacuum matter, is presented. © 2008 The American Physical Society.