Re: dump/restore and SElinux security context problem



At 8:06 PM -0700 4/22/06, Kayvan A. Sylvan wrote:
Hi everyone.

I was trying to upgrade from FC4 to FC5, but my root partition was too small
to accomodate the DVD image. So, I had to resize some partitions. GNU parted
was useless in that task (see Redhat Bugzilla Bug 90894).

Finally, I used "dump" to create a snapshot of a filesystem, then, using
the FC5 DVD to boot into rescue mode, used "restore" to recreate it.

The problem: during the restore, for every file, I get messages like this:

restore: lsetxattr ./System.map-2.6.15-1.1833_FC4 failed: Invalid argument

This feels like it's related to SELinux. In fact, looking at
the restored files with "ls -Z", I see that they are all unlabeled.

If I don't use the rescue CD, and instead, on a running system where SELinux
is enabled, do the following:

1) setenforce 0
2) restore from the dump.
3) setenforce 1

Then, the restored files are in their correct security context.

How do I get this same result (files completely restored, along with
their extended attributes) while using the rescue CD?

When booting the rescue CD, use the kernel command line:

linux rescue enforcing=0

along with any other options you need (when I remember, I use "hda=noprobe
hdb=noprobe").
____________________________________________________________________
TonyN.:' <mailto:tonynelson@xxxxxxxxxxxxxxxxx>
' <http://www.georgeanelson.com/>

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: Recognizing an external drive when rebooting - thanks, solved
    ... I must have missed something here, but why did you NEED to create a rescue ... when the Acronis CD itself can boot up and you can restore a previously ... that should restore from one of my external drives to my C drive. ...
    (microsoft.public.windowsxp.general)
  • Re: Bare metal recovery problems
    ... > what CAN be done with the rescue mode. ... > someone suggested knoppix ir rolling your own rescue cd is probably not ... Knoppix and timos won't boot on the Dell 2650, ... the CD and restore from tape, ...
    (RedHat)
  • Re: AIX 4.3.3 ML09 - mksysb/savevg and restore to /dev/null
    ... > I'm doing some testing with mksysb / savevg's and varying the tape block ... > in to verify the block size used to create the tape image. ... > I'm also attempting to verify the tape by doing a dummy 'restore' to ... > The number of restored files is 1. ...
    (comp.unix.aix)
  • Re: Document Rescue
    ... the OPEN button and select Open and Repair from the choices presented. ... how to restore or rescue a garbled document in Word. ...
    (microsoft.public.word.newusers)
  • Re: Lovsan problem
    ... viruses and worms. ... Windows prevents Antivirus programs access the restored files, ... restore in all drives. ...
    (microsoft.public.windowsxp.security_admin)