Not really sure what this has to do with running your own code, though.
If a manufacturer makes a device locked down, it's the technological protections preventing you from running your own code. Not IP/copyright. Sometimes they get jailbroken but sometimes not.
Plenty of barriers around circumventing such obstacles hinge on IP legislation.