diff options
author | Harald Hoyer <harald@redhat.com> | 2015-06-01 17:26:27 +0200 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2015-06-09 10:17:55 +0200 |
commit | e51b9486d1b59e72c293028fed1384f4e4ef09aa (patch) | |
tree | 5fc769175d87583ea27e074c839c93c2874bdfef /src/Makefile | |
parent | fba3d902b49e1f4654b36c9d4311def4a084c3a7 (diff) |
cryptsetup: craft a unique ID with the source device
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>
[1] https://github.com/npmccallum/petera
Diffstat (limited to 'src/Makefile')
0 files changed, 0 insertions, 0 deletions