Package: gparted
Version: 0.32.0-2
Severity: normal

Dear Maintainer,

gparted fails at resizing encrypted volumes when the volume was opened
without --disable-keyring, as cryptsetup resize then requires the
passphrase but gparted does not provide it.

background: current cryptsetup versions use the kernel keyring to store
encryption keys, which means resizes cannot be done without entering the
passphrase again, as the key cannot be recovered (at leats by normal
means) from the kernel anymore.

unfortunately, gparted opens encrypted volumes without --disable-keyring,
and then fails at the resize step as no password is provided.

as a workaround, one can manually luksOpen the encrypted volume with
--disable-keyring before running gparted.

Either gparted should open encrypted volumes in a way that is comaptible
with itself, or, better yet, it should support giving a passphrase to
cryptsetup resize - it should properly cache the passphrase entered when
opening the encrypted volume.

-- System Information:
Debian Release: 10.2
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'unstable-debug'), (500, 'testing-debug'), 
(500, 'stable-updates'), (500, 'stable-debug'), (500, 'oldstable-updates'), 
(500, 'oldstable-debug'), (500, 'unstable'), (500, 'testing'), (500, 
'oldstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, x32

Kernel: Linux 5.2.21-050221-generic (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_DK.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gparted depends on:
ii  libatkmm-1.6-1v5      2.28.0-2
ii  libc6                 2.28-10
ii  libgcc1               1:9.2.1-15
ii  libglib2.0-0          2.58.3-2+deb10u2
ii  libglibmm-2.4-1v5     2.58.0-2
ii  libgtk2.0-0           2.24.32-3
ii  libgtkmm-2.4-1v5      1:2.24.5-4
ii  libpangomm-1.4-1v5    2.42.0-2
ii  libparted-fs-resize0  3.2-25
ii  libparted2            3.2-25
ii  libsigc++-2.0-0v5     2.10.1-2
ii  libstdc++6            8.3.0-6
ii  libuuid1              2.33.1-0.1

gparted recommends no packages.

Versions of packages gparted suggests:
pn  dmraid         <none>
ii  dmsetup        2:1.02.155-3
ii  dosfstools     4.1-2
ii  e2fsprogs      1.45.4-1
ii  gpart          1:0.3-6
pn  jfsutils       <none>
ii  kpartx         0.7.9-3
ii  mtools         4.0.23-1
ii  ntfs-3g        1:2017.3.23AR.3-3
ii  reiser4progs   1.2.0-2
ii  reiserfsprogs  1:3.6.27-3
ii  udftools       2.1-1
ii  xfsprogs       4.20.0-1
ii  yelp           3.31.90-1

-- no debconf information

Reply via email to