Red Hat Bugzilla – Bug 178822
Should mv always preserve selinux contexts (esp. nfs_t)?
Last modified: 2007-11-30 17:11:21 EST
Description of problem:
Not really sure what is best here, but figured an open discussion would be good.
It looks like mv preserves selinux contexts now, which is good for the most
part. The issue I'm running into is users moving files from an nfs mount (which
has context nfs_t) into their local directories. These directories are backed
up by amanda, but amanda doesn't not have permission for nfs_t (a good thing by
default), so these files don't get backed up. I would guess that some kind of
exclusion list in mv would be unmaintainable. Perhaps the best fix is for the
nfs mounts to show the contexts on the source system? Will this ever happen?
Adding dwalsh to CC. Dan, what do you think?
The goal is to eventually get XAttr support into NFS V3/V4. Which would allow
us to label files over nfs correctly.