It's only by accident that we rely on "IP" protection for this. It is, if you like, a hack on the law
(exactly the same hack makes it possible for companies to impose onerous restrictions on you in
licenses, so it works both ways, not necessarily for good). It's just another peculiarity that copyright
allows companies to write extra law to apply to users of their works.
So I'd be happy for all that to go away and a narrow law to be created specifically to ensure that
companies can't rip off and hide open source code.