Bug 868324

Summary: ecryptfs-migrate home fails when run under sudo
Product: [Fedora] Fedora Reporter: Martin Wilck <martin.wilck>
Component: ecryptfs-utilsAssignee: Michal Hlavinka <mhlavink>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: esandeen, mhlavink
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 868298 Environment:
Last Closed: 2012-10-19 14:07:53 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: 868298    
Bug Blocks:    

Description Martin Wilck 2012-10-19 14:07:04 UTC
+++ This bug was initially created as a clone of Bug #868298 +++

Created attachment 630010 [details]
proposed patch

Description of problem:
ecryptfs-migrate-home calls 

setsebool -P use_ecryptfs_home_dirs=1 1>/dev/null 2>&1 ||:

even if that boolean is already set. Setsebool -P is a very costly operation that needs several minutes to run even on new hardware.

Version-Release number of selected component (if applicable):
ecryptfs-utils-100-4.fc17.x86_64

How reproducible:
always

Comment 1 Martin Wilck 2012-10-19 14:07:53 UTC
sorry, editing mistake