Retired Gen. David Petraeus, one of the remaining four candidates President-elect Trump is considering for secretary of state, would have to notify his probation officer of his new job if offered the position.

Petraeus, who also served as CIA director, was sentenced on April 23, 2015 to two years probation for giving his mistress, Paula Broadwell, classified information. Under the terms of his court-ordered punishment, he would have to alert his probation officer within three days of being offered the job.

"The defendant shall not leave the Western District of North Carolina without the permission of the Court or probation officer. Travel allowed for work as approved by U.S. probation office," according to the court order. "The defendant shall notify the probation officer within 72 hours of any change in residence or employment."

The potential Cabinet pick's personal items, computer and phone would also be subject to warrantless searches through April 2017.

"The defendant shall submit his person, residence, office, vehicle and/or any computer system including computer data storage media, or any electronic device capable of storing, retrieving, and/or accessing data to which they have access or control, to a search, from time to time, conducted by any U.S. Probation Officer and such other law enforcement personnel as the probation officer may deem advisable, without a warrant," the judgment states.

Trump could take executive action as soon as he takes office on Jan. 20, 2017 and pardon Petraeus for one count of unauthorized removal and retention of classified material. The Republican candidate regularly cited Petraeus while on the campaign trail, noting that he was punished more severely for sharing limited classified documents in comparison to former Secretary of State Hillary Clinton's use of an unauthorized private email server.