[systemd-bugs] [Bug 66396] RFE: implement --header option in systemd-cryptsetup/crypttab

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 21 04:27:08 PST 2014


https://bugs.freedesktop.org/show_bug.cgi?id=66396

--- Comment #7 from Chaser <chaser.andrey at gmail.com> ---
(In reply to Zbigniew Jedrzejewski-Szmek from comment #3)

> @@ +634,4 @@
> >                          if (streq_ptr(arg_type, CRYPT_TCRYPT))
> >                                  k = attach_tcrypt(cd, argv[2], key_file, passwords, flags);
> >                          else
> > +                                k = attach_luks_or_plain(cd, argv[2], key_file, ( arg_header ? argv[3] : NULL), passwords, flags);
> 
> I don't grok this. Why argv[3] is used if arg_header is set?

argv[3] contains data_device if (and only if) arg_header is set.

> +                if (data_device)
> +                        r = crypt_set_data_device(cd, data_device);

>From official docs:

> int crypt_set_data_device (struct crypt_device * cd, const char * device) 	
> Set data device For LUKS it is encrypted data device when LUKS header is separated.

See also
http://wiki.cryptsetup.googlecode.com/git/API/libcryptsetup_8h.html#aff3afff2a83a64f80962afa446eb9dca
(

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20141221/bb02927a/attachment.html>


More information about the systemd-bugs mailing list