Green’s Dictionary of Slang

yardbird n.1

[SE yard + bird n.1 (3a)/bird n.1 (2b)]
(US)

1. a civilian dock worker in a military institution, e.g. a naval dockyard.

[US]Mad mag. Dec. 8: Yardbirds can blast butts and garbage clear off Army base.
[US]T. Pynchon V 427: ‘Yardbirds are the same all over,’ Pappy said [...] The dock workers fled by, jostling them.

2. anyone confined by authority to a restricted area, usu. prison; also attrib.

[US]P. Kendall Dict. Service Sl. n.p.: yard bird . . . soldier restricted to a limited area – a disciplinary measure.
[US]N. Algren Man with the Golden Arm 207: Yardbirds who couldn’t quite be trusted in a bakery or a laundry.
[US]L. Uris Battle Cry (1964) 45: You’re not like most of the yardbirds here.
[US]G. Wolff Duke of Deception (1990) 254: They knew my father was a yardbird, and they believed I was a Jew.
[US]D. Woodrell Muscle for the Wing 39: This led to frequent yardbird seminars on how we did this in Chicago, L.A., Boston, or Louisiana.
[US]H. Rawson Dict. of Invective (1991) 43: Because convicts are kept in cages, they are jailbirds (from the seventeenth century) as well as yardbirds (much newer, probably from the twentieth century).
[US]T. Willocks Green River Rising 133: They send in the National Guard, shoot ten or twenty of you yardbirds down.
[US]J. McCourt ‘Vilja de Tanquay Exults’ in Queer Street 303: A drag queen / Yard bird, old-lag ward of Her Majesty.
[SA]IOL News (Western Cape) 27 Sept. 🌐 Y is for Yardbirds [who] took their name from a US jail slang term for prisoners in an exercise yard.

3. in fig use, one who is bound to another.

[US]C. Brown Manchild in the Promised Land (1969) 87: For the next two weeks K.B. was Claiborne’s yardbird. He had to go everywhere where Claiborne went.

In compounds

yardbird lawyer (n.)

(US Und.) a prison inmate who has become a self-taught lawyer, either to pursue his own case, to combat prison corruption or to help fellow inmates.

[US]Bentley & Corbett Prison Sl. 37: Yardbird Lawyer [...] An inmate who develops a loathing for the criminal justice system because of its inconsistencies and perceived unfairness, and spends much of his time studying the law.