Even in California, pump shotguns are still legal. Seems to me to be the best longgun for inside the house. A 7.62x39 will penetrate almost 1/4" of plate steel at 80 feet and the 30-30 is pretty similar to 7.62x39. As far as I have seen, Glasers are not available in 30-30. Maybe they are, but they're still going to run you at least $15 to $17 for 6. And you'll need to shoot a few to see how they act out of the weapon. Contrast that to $3.50 per box of 5 max price premium buckshot. Or you could buy a 9mm, .40 cal, or .45 McPistol of some sort that will do the job at something like $12 per box of 20 premium hollowpoints. Those are still legal in California, too, as are revolvers. As far as bad guys wearing body armor, that's probably overblown to a great extent. The average tweeker would have sold that to buy crank long back if he had armor. Most professionals wearing armor are going to be hitting armored cars or banks. BUT if someone did enter a home wearing armor, as the good G. Gordon Liddy said, they will still not have bullet proof heads.
Now for riots, as I evisioned the original intent of the defensive use of a rifle, the 30-30 would be splendid. In such cases, one may have other considerations to consider besides overpenetration. Such as remaining alive. A shotgun still might be a good choice, but, on the other hand, one may not wish to allow armed thugs to get even that close with molotov cocktails. In such cases, a 30-30 rifle would be a great choice. That is, if you could not lay hands on an AK or an AR, which folks in some states cannot.
Be prepared for anything.