10 USC 140 - General Counsel

(a) There is a General Counsel of the Department of Defense, appointed from civilian life by the President, by and with the advice and consent of the Senate.
(b) The General Counsel is the chief legal officer of the Department of Defense. He shall perform such functions as the Secretary of Defense may prescribe.