File labeling in a chrooted loopback
Just a question to save me lots of time in case it is a bad idea...
I'm building bootable images (well the root partition at least) into a loopback file and I'd like to set up the labeling in the loopback so I can just rsync the whole thing onto a target real partition. Does this seem feasible to do, assuming the build system has xattr's but is not running selinux enabled? I mostly want to confirm what I believe will be the case:
1) The labeling will work properly and not leak out and clobber the real file system outside the chroot.
2) After rsyncing the target file will still contain the xattr data.
Hmmm. I see a problem there. I'll bet rsync doesn't preserve it so I may be forced to dd instead. Bummer.
Signature · 10 lines
------------------------------------------------------
IN MY NAME: Dale Amon, CEO/MD
No Mushroom clouds over Islandone Society
London and New York. www.islandone.org
------------------------------------------------------
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to [email protected] with
the words "unsubscribe selinux" without quotes as the message.