Green’s Dictionary of Slang

rug adj.3

[? the comfort and security provided by a rug, or corruption of SE right]

In phrases

all rug (adj.)

[late 17C-mid-19C] (UK Und.) everything is secure.