]> git.baikalelectronics.ru Git - kernel.git/commit
trusted-keys: check hex2bin result
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 20 Sep 2011 15:23:52 +0000 (11:23 -0400)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 21 Sep 2011 03:26:05 +0000 (23:26 -0400)
commitad85911ae3da478acd7bbe2f3c4f91865367553e
treebbdc0709c643e58a22443ab086c6e4aa80329e17
parentc9291e761f90ca67e5cd944b19de70df8e4a3ec6
trusted-keys: check hex2bin result

For each hex2bin call in trusted keys, check that the ascii hex string is
valid.  On failure, return -EINVAL.

Changelog v1:
- hex2bin now returns an int

Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
security/keys/trusted.c