howto integrate dm-crypt into a frontend(or howto get the udi for pmount)

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

 



Hello,

im writing a small frontend(in C) for cryptsetup, only init and mount the
volumes, no creation of volumes,
and I would like to know how i can pass the password to the cryptsetup
commando?
Since there is no -P option i cant do it via argv.
I have the frontend working with keyfiles, but when i ask the user to enter
a password I dont know how to programm this option. When i start my frontend
i get password request on the shell where i stared it.

I found out that pmount has a --passphrase option, but i couldnt get it to
work when i use the udi
shown with hal-devices:

12: udi =
'/org/freedesktop/Hal/devices/volume_uuid_58302c48_74e1_4c94_a6bf_4b7809e8cb7c'

 org.freedesktop.Hal.Device.Volume.Crypto.method_execpaths = {
'hal-luks-setup', 'hal-luks-teardown' } (string list)
 org.freedesktop.Hal.Device.Volume.Crypto.method_signatures = { 's', '' }
(string list)
 org.freedesktop.Hal.Device.Volume.Crypto.method_names = { 'Setup',
'Teardown' } (string list)
 info.interfaces = { 'org.freedesktop.Hal.Device.Volume.Crypto' } (string
list)
 info.udi =
'/org/freedesktop/Hal/devices/volume_uuid_58302c48_74e1_4c94_a6bf_4b7809e8cb7c'
(string)
 volume.partition.msdos_part_table_type = 131  (0x83)  (int)
 info.product = 'Volume (crypto_LUKS)'  (string)
 ....
 linux.sysfs_path_device = '/sys/block/hdb/hdb1'  (string)
 linux.sysfs_path = '/sys/block/hdb/hdb1'  (string)

they are alls setup with LUKS.
so how should i continue?

thx for your help

[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