Jailbreaking is not currently illegal on most devices, but using illegal applications and software through jailbreaking certainly is. This procedure is legal only because the DMCA does not cover the process specifically.