Message ID | 20240621203143.200561-2-john.cabaj@canonical.com |
---|---|
State | New |
Headers | show |
Series | Backport request for Ubuntu 5.15 kernels - CIFS Issue | expand |
diff --git a/security/keys/key.c b/security/keys/key.c index e65240641ca5..f2a84d86eab4 100644 --- a/security/keys/key.c +++ b/security/keys/key.c @@ -464,7 +464,8 @@ static int __key_instantiate_and_link(struct key *key, if (authkey) key_invalidate(authkey); - key_set_expiry(key, prep->expiry); + if (prep->expiry != TIME64_MAX) + key_set_expiry(key, prep->expiry); } }