Interesting. I don’t think scanning publically available computers attached to a quasi legal file sharing network is, in and of itself, illegal. With that said, why was the Navy doing it? That isn’t their job.
http://arstechnica.com/tech-policy/2015/03/is-it-legal-for-us-military-to-scan-the-publics-computers-for-kid-porn/