diff options
author | Tyler Hicks <tyhicks@linux.microsoft.com> | 2020-08-11 21:26:21 +0200 |
---|---|---|
committer | Mimi Zohar <zohar@linux.ibm.com> | 2020-08-31 23:45:14 +0200 |
commit | 48ce1ddce16b0d1e3ff948da40a0d5125a4ee1a0 (patch) | |
tree | ac61a13bfdde5936b29985c6a60ab75dc7ff3af7 /drivers/net/wireless | |
parent | ima: Pre-parse the list of keyrings in a KEY_CHECK rule (diff) | |
download | linux-48ce1ddce16b0d1e3ff948da40a0d5125a4ee1a0.tar.xz linux-48ce1ddce16b0d1e3ff948da40a0d5125a4ee1a0.zip |
ima: Fail rule parsing when asymmetric key measurement isn't supportable
Measuring keys is currently only supported for asymmetric keys. In the
future, this might change.
For now, the "func=KEY_CHECK" and "keyrings=" options are only
appropriate when CONFIG_IMA_MEASURE_ASYMMETRIC_KEYS is enabled. Make
this clear at policy load so that IMA policy authors don't assume that
these policy language constructs are supported.
Fixes: 2b60c0ecedf8 ("IMA: Read keyrings= option from the IMA policy")
Fixes: 5808611cccb2 ("IMA: Add KEY_CHECK func to measure keys")
Suggested-by: Nayna Jain <nayna@linux.ibm.com>
Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Reviewed-by: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
Reviewed-by: Nayna Jain <nayna@linux.ibm.com>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
Diffstat (limited to 'drivers/net/wireless')
0 files changed, 0 insertions, 0 deletions