Normally a special 'do' can be sorted if the right people are on-side.....
A few years ago when the sqn I was serving on had rather more say over its day-to-day activities, we managed to obtain clearance for a fly-past at the funeral of an ex-sqn chum who had died rather suddenly. It took a lot of planning, consulting the various Rules and People in Charge of said rules, but strings were pulled (as was some wool) and we flew over the church as we'd briefed. Possibly a bit lower than we'd allegedly intended, but we had to give his ghost a wry smile....
Then flew back below clouds/gliders/spamcans etc to the Secret Oxonian Airbase, co-incidentally right over a mate's wedding reception.....