Bug 983969

Summary: RFE: virt-sysprep should be SELinux-aware
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mbooth, ptoscano, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-14 14:47:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1089100    
Bug Blocks:    

Description Richard W.M. Jones 2013-07-12 12:21:41 UTC
Description of problem:

'virt-sysprep --selinux' flag should:

  loadpolicy

(for guests which support this) so that SELinux labelling
works properly.  When this flag is specified, DON'T set
autorelabel.  The autorelabel step takes too long!

(Requested by Mark @ catn.com)

Comment 1 Pino Toscano 2014-06-10 15:47:35 UTC
Since libguestfs 1.26 virt-sysprep has --selinux-relabel which should do the job (either relabel files if possible, or touch /.autorelabel if not), modulo bugs (#1089100).

Should this be closed at this point, leaving #1089100 (and eventually others) to deal with bugs of --selinux-relabel?

Comment 2 Richard W.M. Jones 2014-06-10 16:57:29 UTC
Even better, let's make it a dependency ...