Summary: | udisks does not tear down LUKS devices when the slave is forcibly removed | ||
---|---|---|---|
Product: | udisks | Reporter: | Mathieu Trudel-Lapierre <mathieu> |
Component: | luks | Assignee: | David Zeuthen (not reading bugmail) <zeuthen> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
use luks_holder property to identify luks cleartext device
updated patch |
Description
Mathieu Trudel-Lapierre
2010-09-22 13:21:00 UTC
Created attachment 38888 [details] [review] use luks_holder property to identify luks cleartext device It seems that using device->priv->luks_holder for the device that is being remove still contains the name of the cleartext LUKS device that requires that slave, so it's possible to use it to immediately get which device to use for force_luks_teardown(). Created attachment 38904 [details] [review] updated patch udisks would segfault if the device was ejected from Nautilus... this is because luks_holder is NULL in that case. I can reproduce this bug. Thanks! This patch makes a sense, and I confirm that it now behaves correctly with both regular unmount and yanking out a mounted encrypted USB stick. Pushed to git master. I'll try to write a test case for this, too. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.