Military aviators are subject to FAA regs and can be violated by the FAA. Disciplinary action is usually left to the military. The military does have certain exemptions for training and operation needs: lights out operations, high speed low level routes, etc. I was an FTE on a USAF flight where the crew busted Class C airspace and thetower did no take kindly to the intrusion. The crew got a strong talking to from the tower chief and showed a lot of humility so the issue was dropped.
For ADSB it’s actually a mixed bag....
The DOD chose not to equip aircraft that are being retired NLT 2025 as not being worth the cost and effort.
Aircraft operating in CONUS are required to operate with ADSB on unless mission requirements dictate, but then requires coordination with the FAA.
For certain tactical aircraft it was determined not to be equipped based on its mission such as the B-2.