Generally repressive in Marakesh, Rebat, Casablanca. My neighbor is from there, and according to him, no such thing as legal handgun ownership, though shotguns, pistol caliber carbines are OK in rural areas. It is a fairly corrupt place, though, and you can buy whatever you need, permit-wise, with a bit of reseach and 'grease'
Further south, (well away from the coast and the 'authorities',)anything goes. It's still pretty tribal (Berber) and wild.