This isn't something that can really be legal or illegal. It is the problem of corperate entities being powerful enough to infringe itno areas where typically governements only can. The only difference between beign able to do what a government does and actually beign a government is litterally...