(a)brings into a naval prison or naval detention quarters or to or for any prisoner or person undergoing detention, without the knowledge of the officer having charge or command thereof, any money, clothing, provisions, tobacco, letters, papers, or other articles not allowed by the rules of the prison or naval detention quarters, to be in the possession of a prisoner or person undergoing detention, or