dump/restore selinux query

Daniel J Walsh dwalsh at redhat.com
Mon Oct 1 13:14:37 UTC 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/01/2012 07:10 AM, John Austin wrote:
> Hi
> 
> I have recently used a bootable F17 memory stick (fully updated) to 
> dump/restore an un-mounted Centos 6.3 system root (/) partition to a
> "clone" backup partition on a separate disk.
> 
> I obtain SELinux error messages during the restore phase
> 
> Does anyone (Daniel?) know:
> 
> Will this be a problem if/when I need to use the backup?
> 
> Regards
> 
> John
> 
Most likely the target OS did not understand the labels that you are trying to
install.  So if you took labels off a F17 machine and tried to put them on a
RHEL6 box, the labels might not be defined.
> 
> 
> ------------------------------------------- [root at blue ~]# mount -o noatime
> /dev/sdd4 /mnt/zip [root at blue ~]# cd /mnt/zip [root at blue zip]# dump 0f -
> /dev/sda4 | restore rf - DUMP: Date of this level 0 dump: Fri Sep 28
> 18:16:10 2012 DUMP: Dumping /dev/sda4 (an unlisted file system) to standard
> output DUMP: Label: ocz240_root1 DUMP: Writing 10 Kilobyte records DUMP:
> mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] 
> DUMP: estimated 8560325 blocks. DUMP: Volume 1 started with block 1 at: Fri
> Sep 28 18:16:11 2012 DUMP: dumping (Pass III) [directories] DUMP: dumping
> (Pass IV) [regular files] restore: ./lost+found: File exists restore:
> ./var/cache/hald/fdi-cache: EA set
> security.selinux:system_u:object_r:hald_cache_t:s0 failed: Invalid
> argument restore: ./var/log/pm-powersave.log: EA set
> security.selinux:system_u:object_r:hald_log_t:s0 failed: Invalid argument 
> restore: ./usr/libexec/hald-addon-macbookpro-backlight: EA set
> security.selinux:system_u:object_r:hald_mac_exec_t:s0 failed: Invalid
> argument restore: ./usr/sbin/tzdata-update: EA set
> security.selinux:system_u:object_r:tzdata_exec_t:s0 failed: Invalid
> argument restore: ./usr/sbin/hald: EA set
> security.selinux:system_u:object_r:hald_exec_t:s0 failed: Invalid argument 
> restore: ./usr/libexec/hal-system-sonypic: EA set
> security.selinux:system_u:object_r:hald_sonypic_exec_t:s0 failed: Invalid
> argument restore: ./usr/bin/hal-setup-keymap: EA set
> security.selinux:system_u:object_r:hald_keymap_exec_t:s0 failed: Invalid
> argument restore: ./usr/libexec/hald-addon-macbook-backlight: EA set
> security.selinux:system_u:object_r:hald_mac_exec_t:s0 failed: Invalid
> argument DUMP: 66.01% done at 18834 kB/s, finished in 0:02 DUMP: Volume 1
> completed at: Fri Sep 28 18:24:26 2012 DUMP: Volume 1 9116920 blocks
> (8903.24MB) DUMP: Volume 1 took 0:08:15 DUMP: Volume 1 transfer rate: 18418
> kB/s DUMP: 9116920 blocks (8903.24MB) DUMP: finished in 495 seconds,
> throughput 18418 kBytes/sec DUMP: Date of this level 0 dump: Fri Sep 28
> 18:16:10 2012 DUMP: Date this dump completed:  Fri Sep 28 18:24:26 2012 
> DUMP: Average transfer rate: 18418 kB/s DUMP: DUMP IS DONE restore:
> ./var/run/pm-utils: EA set
> security.selinux:system_u:object_r:hald_var_run_t:s0 failed: Invalid
> argument restore: ./var/run/pm-utils/locks: EA set
> security.selinux:system_u:object_r:hald_var_run_t:s0 failed: Invalid
> argument restore: ./var/run/pm-utils/storage: EA set
> security.selinux:system_u:object_r:hald_var_run_t:s0 failed: Invalid
> argument restore: ./var/cache/hald: EA set
> security.selinux:system_u:object_r:hald_cache_t:s0 failed: Invalid
> argument restore: ./var/run/hald: EA set
> security.selinux:system_u:object_r:hald_var_run_t:s0 failed: Invalid
> argument restore: ./var/run/pm-utils/pm-powersave: EA set
> security.selinux:system_u:object_r:hald_var_run_t:s0 failed: Invalid
> argument restore: ./var/run/pm-utils/pm-powersave/storage: EA set
> security.selinux:system_u:object_r:hald_var_run_t:s0 failed: Invalid
> argument [root at blue zip]# sync [root at blue zip]# cd [root at blue ~]# umount
> /mnt/zip
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlBplz0ACgkQrlYvE4MpobM29QCgwMJ9Jht4OXQ66j+kiuIB7/VM
bXUAoKGIjBNU2XRH3tuscJqU1npvqxrL
=A5KW
-----END PGP SIGNATURE-----


More information about the users mailing list