That's a California desert tortoise (Gopherus agassizii), and it is a protected species. You are allowed to have it, however, it should be registered with the State. Also, you can't buy or sell them for money, and they can't be removed for California. https://tortoise.org/cttc/cdfw_dt_permit_app.pdf