On the contrary, it's becoming increasingly illegal.
The most obvious case currently are John Deere tractors that cannot be repaired or modified by their """owners""" under the headline of the DMCA, but in the future, we're going to see the same for medical devices.
There was an excellent talk about this by Karen Sandler at freenode Live this year regarding her own pacemaker.