bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #45889] cryptomount thinks locked device is: already mounted as cry


From: TJ
Subject: [bug #45889] cryptomount thinks locked device is: already mounted as cryptoX
Date: Sun, 06 Sep 2015 23:52:38 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:40.0) Gecko/20100101 Firefox/40.0

Follow-up Comment #3, bug #45889 (project grub):

disk/cryptodisk.c:716: insert 0, source 'hd0,gpt3', id 128, dev_id 0 

That means the test in grub_cryptodisk_get_by_source_disk() will return the
entry for the first unlocked partition on the same disk, even if that disk has
128 (GPT) encrypted partitions.

Looking at include/grub/cryptodisk.h::struct grub_cryptodisk
it seems the issue is the structure has no concept of partitions, and no test
against dev->source string is done (the only place in the structure where the
partition is stored ) but that isn't a good basis for such test if the device
was opened by UUID name.



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?45889>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]