Bug#888444: cryptmount: Got errno=95 when run as not-root

2018-01-27 Thread R.Penney
I think I've found the origin of the problem, and this is related to a change made within libcryptsetup during January 2017, in the function device_internal_prepare(). This now checks that both getuid() and geteuid() return zero before attempting to configure a loopback device. Other areas of libcr

Bug#888444: cryptmount: Got errno=95 when run as not-root

2018-01-26 Thread R.Penney
Hello Andrey, Thanks for finding this issue with cryptmount, and for your helpful stack traces and configuration information. I am still investigating this issue, and have created a new test specifically for LUKS partitions within ordinary files to help narrow-down the source of the problem. Coul

Bug#888444: cryptmount: Got errno=95 when run as not-root

2018-01-25 Thread Andrey Chernomyrdin
Package: cryptmount Version: 5.2.4-1+b1 Severity: normal Dear Maintainer, When I run as regular user (not-root): $ cryptmount usb-key Enter password for target "usb-key": * Failed to extract LUKS key for "usb-key" (errno=95) Failed to extract cipher key strace log for not-root https://gist