[systemd-devel] [PATCHi V4] cryptsetup: craft a unique ID with the source device

Lennart Poettering lennart at poettering.net
Tue Jun 9 16:15:56 PDT 2015


On Mon, 01.06.15 17:26, harald at redhat.com (harald at redhat.com) wrote:

> From: Harald Hoyer <harald at redhat.com>
> 
> If cryptsetup is called with a source device as argv[3], then craft the
> ID for the password agent with a unique device path.
> 
> If possible "/dev/block/<maj>:<min>" is used, otherwise the original
> argv[3] is used.
> 
> This enables password agents like petera [1] to provide a password
> according to the source device. The original ID did not carry enough
> information and was more targeted for a human readable string, which
> is specified in the "Message" field anyway.
> 
> With this patch the ID of the ask.XXX ini file looks like this:
> ID=cryptsetup:/dev/block/<maj>:<min>

For the sake of the archives: this was now merged with github PR #77.

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list