The Posse Comitatus act only applies to the Army and Air Force. It's DoD policy to pretend that it also covers the Marines and other branches, but AFAIK not a legal requirement. Even then, the Insurrection Act gives the Feds power to use the military as law enforcement in case of severe civil unrest (like the LA riots)