Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   Reset encryptionPassphrase when we reset the rest of storage. (http://www.linux-archive.org/centos/264497-reset-encryptionpassphrase-when-we-reset-rest-storage.html)

David Cantrell 03-16-2009 11:38 PM

Reset encryptionPassphrase when we reset the rest of storage.
 
Ack

On 03/16/2009 12:54 PM, David Lehman wrote:

Any devices we have keys for already have their key saved in a hash
based on the LUKS UUID, so we will not lose information. We are only
resetting the global passphrase used for newly created devices.
---
storage/__init__.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 8207156..e4a7d43 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -207,6 +207,7 @@ class Storage(object):

"""
# save passphrases for luks devices so we don't have to reprompt
+ self.encryptionPassphrase = None
for device in self.devices:
if device.format.type == "luks" and device.format.exists:
self.__luksDevs[device.format.uuid] = device.format._LUKS__passphrase



--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 10:48 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.