If Donald Trump chooses David Petraeus to serve as his secretary of state, the retired four star general will have to notify his probation officer about the new job.

That’s one of the conditions of a plea agreement Petraeus signed on April 29, 2015 in a case in which he was charged with the unauthorized removal and retention of classified material after he was found to have given documents to his biographer and mistress, Paula Broadwell.

Petraeus paid a $100,000 fine and received two years’ probation as part of a plea deal in the felony case.

Despite that controversy, Petraeus is on Trump’s short list to become the nation’s top diplomat. Mitt Romney, Rudy Giuliani and Tennessee Sen. Bob Corker are also being considered.

Petraeus’ mishandling of classified information is seen as a political roadblock to his nomination. If nominated, he would likely face intense questioning during his Senate confirmation hearing. But Petraeus’ probation agreement, which USA Today reporter Brad Heath published on Twitter, brings other non-political restraints.

“The defendant shall notify the probation officer within 72 hours of any change in residence or employment,” reads one of the conditions listed on the agreement, which is filed in the U.S. District Court of Western North Carolina.

The agreement also prohibits Petraeus from “possessing a firearm, destructive device, or other dangerous weapon.”

Petraeus must also, for the remainder of the probation stint, submit to random searches of his computers and all electronic devices.

The Daily Caller reached out to David Kendall, one of Petraeus’ lawyers in the case and the personal attorney for Hillary Clinton, for comment, but he did not respond by press time.

Follow Chuck on Twitter