`sudo cp -a non-root-file copy` would not preserve capabilities. The attached fixes this and passes all tests. cheers, Pádraig.