luksDump with --master-key-file fails to create nonexisting file

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

 



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

-- 
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

_______________________________________________
dm-crypt mailing list
dm-crypt@xxxxxxxx
https://www.saout.de/mailman/listinfo/dm-crypt




[Index of Archives]     [Device Mapper Devel]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux