On Wed, Jan 04, 2006 at 09:45:32AM -0700, Gary Kopp wrote:
> Searching has so far only turned up one old post in another mailing list
> suggested Bacula needed a patch to handle this, so let me ask here.
> 
> Will Bacula back up and restore the xattrs (extended attributes) used by
> SELinux?  My environment is RHEL4, but SELinux xattrs are common across all
> implementations AFAIK.

No, it doesn't.

If all of your files have the default selinux contexts, the simplest solution
is to simply ensure that on a bare metal recovery you also ensure that
/.autolabel file (IIRC) is created.  On FC4 at least this will cause the boot
scripts to troll through / and make the contexts match those defined in the
policy.

Other than that, you could probably hack up a script similar to the one listed
for backing up ACLs.  This could take a while on a system with a lot of files,
and you would have to work a way to reapply those contexts on restore manually,
but at least the data would be there.

That said, I don't suppose there happen to be any plans to backup xattrs?  I'd
be more than happy to volunteer to test out any code to do so.

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Network Engineer          |  is simple, elegant, and wrong. - HL Mencken
    GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to