Don't hurt anyone, don't lie or steal from anyone and don't crap where we all live.
Most laws are within the confines you set. So what's your point?
But the law that gives the state the authority to restrict carpooling doesn't appear to be within those confines. Consenting adults should have the right to interact and do business with each other as they want without having to get permission first. .