I've finally got round to finishing this off.
I.E. the patch set to have {cp,mv,install,mknod,etc}
support -Z without an argument, to "restorecon"
the destination paths.So the adjustments have expanded a lot, so I've put up on github for download/viewing/commenting. Hopefully all my changes should be obvious and correct. The last commit contains questions though for parts I didn't understand, To view in a browser: https://github.com/pixelb/coreutils/compare/selinux-restorecon?expand=1 To download just clone: https://github.com/pixelb/coreutils.git and switch to the selinux-restorecon branch cheers, Pádraig.
