Get signature version from the header
authorVivek Goyal <vgoyal@redhat.com>
Fri, 12 Jul 2013 18:52:11 +0000 (14:52 -0400)
committerDmitry Kasatkin <d.kasatkin@samsung.com>
Fri, 9 Aug 2013 12:57:26 +0000 (15:57 +0300)
commitab18c60ec1160d6460083818e1e5390f33766e2a
tree77d5930131f430b8c464fb0cbc44553e74799e92
parentd9678295b91293dc56b27770cfe071d82d625ffa
Get signature version from the header

Currently we assume signature version is v1 until and unless -x is
specified on kernel command line. Given the fact that signature version
information is available in signature itself, it is much better to get
it from there and not require user to pass -x during verification phase.

If user passed -x on command line, then honor it.

Now one can do following.

evmctl ima_sign -x /tmp/data.txt
evmctl ima_verify /tmp/data.txt

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
src/evmctl.c