Section 113(3) in The Naval Ceremonial, Conditions Of Service And Miscellaneous Regulations, 1964
(3)At the funeral of officers on unemployed full pay or half pay or on the retired list, or of pensioners who possess war medals or good conduct medals, a gun-carriage and a bugler to sound the "Last Post" may be lent, when desired, together with bearer party and men to drag the gun-carriage. This privilege shall, however, only be granted when the cremation or burial is within the precincts of a naval port and upon the conditions that there is no interference with Service duties, that no expense to the public is entailed, and that the services of the men on the bearer and gun-carriage parties are entirely voluntary.