Ingo Franzki
2018-08-06 14:21:41 UTC
Hi,
I just noticed that a luksDump with option --master-key-file fails to open the file when it is not already existing.
Is this by intention?
cryptsetup luksDump <device> --dump-master-key --master-key-file mykey.bin
...
Cannot open keyfile mykey.bin for write.
When I do a "touch mykey.bin" first, above command works fine.
Funtion tools_write_mk() in utils_password.c uses open with O_WRONLY. This does not seem to create the file when it is not existing.
Maybe it should also specify O_CREAT?
Kind regards, Ingo
I just noticed that a luksDump with option --master-key-file fails to open the file when it is not already existing.
Is this by intention?
cryptsetup luksDump <device> --dump-master-key --master-key-file mykey.bin
...
Cannot open keyfile mykey.bin for write.
When I do a "touch mykey.bin" first, above command works fine.
Funtion tools_write_mk() in utils_password.c uses open with O_WRONLY. This does not seem to create the file when it is not existing.
Maybe it should also specify O_CREAT?
Kind regards, Ingo
--
IBM Deutschland Research & Development GmbH / Vorsitzender des Aufsichtsrats: Martina Koederitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294
IBM Deutschland Research & Development GmbH / Vorsitzender des Aufsichtsrats: Martina Koederitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294