KEYS: pass expiry from X.509 cert to key structure
David Howells
maintainerQuoted 1 line · Yihao Wu
Signed-off-by Yihao Wu <wuyihao@xxxxxxxxxxxxxxxxx>
xxxxxxxxxxxxxxxxx? Can I substitute your actual domain name for that?
David
David Howells
maintainerQuoted 1 line · Yihao Wu
+
prep->expiry=cert->valid_to;
Note that this patch has whitespace breakage, but I can fix that up by hand.
David
Quoted 5 lines · David Howells
Quoted 1 line · Yihao Wu
Signed-off-by Yihao Wu <wuyihao@xxxxxxxxxxxxxxxxx>xxxxxxxxxxxxxxxxx? Can I substitute your actual domain name for that?
Yes you can. Yihao just went on vacation.
Thanks,
Jia
Quoted 3 lines
David
Quoted 8 lines · David Howells
Quoted 1 line · Yihao Wu
+
prep->expiry=cert->valid_to;Note that this patch has whitespace breakage, but I can fix that up by hand.
David
Thanks!
Yihao
David Howells
maintainerQuoted 3 lines · Yihao Wu
Expiry time is not utilized by X.509 cert yet. This patch reads expiry from X.509 cert into
key_preparsed_payload. Then it is passed to key structure when the key is being instantiated.
Thinking on it again, it's more complicated than you think: Unless you can guarantee that the system clock is correct at time of boot, this may cause the system to fail to boot. The certs used for module signing and suchlike may appear to be expired because the clock is wrong and thus not be usable.
David