keys, dns: Allow key types (eg. DNS) to be reclaimed immediately on expiry
[linux-2.6-block.git] / security / keys / proc.c
index d0cde6685627f2ab6d3cc0d6919b7e8a50c10dd0..4f4e2c1824f18bd480554661f6f2f2d67c9bce51 100644 (file)
@@ -198,7 +198,7 @@ static int proc_keys_show(struct seq_file *m, void *v)
 
        /* come up with a suitable timeout value */
        expiry = READ_ONCE(key->expiry);
-       if (expiry == 0) {
+       if (expiry == TIME64_MAX) {
                memcpy(xbuf, "perm", 5);
        } else if (now >= expiry) {
                memcpy(xbuf, "expd", 5);