Lennart Poettering
d0badc0a61
sysupdate: add simple "freshness" validation to systemd-sysupdate
...
In order to make "freeze" attacks against the update logic harder let's
add the ability to encode a "Best Before" date into SHA256SUMS directory
listings: if the current time is already beyond that time, we'll ignore
the SHA256SUMS as "stale" and fail the upgrade. Or in other words: the
freeze attack will now result in a client-side error eventually, instead
of success state.
The best before data is encoded in an optional pseudo-file listed in SHA256SUMS:
any file named BEST-BEFORE-YYYY-MM-DD.
2026-01-20 21:22:35 +01:00
..
2025-01-07 02:05:16 +09:00
2025-02-17 19:49:32 +00:00
2022-05-21 18:09:50 +02:00
2024-03-27 06:53:46 +01:00
2019-12-11 17:04:20 +01:00
2024-11-29 14:18:15 +01:00
2024-04-17 20:53:49 +02:00
2021-10-18 09:43:18 +02:00
2021-06-24 10:20:29 +02:00
2024-03-27 07:11:53 +01:00
2024-07-12 14:38:09 +01:00
2025-07-11 13:05:46 +09:00
2025-11-23 17:16:09 +01:00
2025-11-12 23:01:35 +00:00
2025-10-22 22:56:02 +02:00
2025-12-17 23:00:59 +00:00
2024-02-23 09:48:47 +01:00
2025-09-27 00:21:53 +09:00
2025-11-23 17:16:09 +01:00
2025-07-07 11:21:25 +02:00
2025-04-25 00:42:24 +01:00
2024-03-27 07:11:55 +01:00
2025-06-04 07:29:16 +09:00
2026-01-14 16:52:58 +01:00
2025-11-02 00:19:57 +00:00
2025-07-29 18:40:26 +02:00
2025-03-10 05:24:19 +09:00
2024-04-17 21:21:23 +02:00
2024-12-19 15:35:55 +01:00
2024-12-19 15:35:55 +01:00
2024-12-28 12:24:42 +09:00
2024-06-03 15:22:54 +09:00
2024-04-29 14:16:57 +02:00
2024-10-17 00:49:59 +09:00
2022-11-02 07:31:18 +09:00
2025-07-07 17:28:47 +00:00
2026-01-16 22:56:28 +09:00
2025-11-19 20:00:25 +01:00
2024-12-19 15:35:55 +01:00
2026-01-20 21:22:35 +01:00
2025-03-05 12:38:30 +01:00
2026-01-16 22:56:08 +09:00
2019-12-11 17:04:20 +01:00
2021-10-18 09:43:18 +02:00
2025-10-22 09:34:14 +02:00
2025-09-24 08:48:17 +02:00
2025-05-14 18:06:04 +02:00
2025-12-28 09:31:47 +00:00
2024-04-17 21:21:23 +02:00
2026-01-18 15:50:54 +09:00
2026-01-16 22:56:08 +09:00
2025-06-26 15:21:01 +02:00
2024-04-17 21:21:23 +02:00
2024-04-17 21:21:23 +02:00
2024-04-17 21:21:23 +02:00
2024-02-23 09:48:47 +01:00
2025-11-17 18:05:41 +01:00
2025-10-24 01:52:59 +09:00
2025-11-25 22:52:10 +09:00
2024-09-17 10:21:54 +02:00
2026-01-16 22:56:08 +09:00
2024-03-27 07:11:59 +01:00
2025-12-18 10:50:23 +01:00
2025-11-19 20:00:25 +01:00
2025-12-31 10:59:41 -05:00
2025-03-14 20:33:37 +09:00
2025-07-07 11:21:25 +02:00
2025-11-23 17:16:09 +01:00
2025-11-23 17:16:09 +01:00
2024-03-27 07:26:56 +01:00
2025-07-03 17:43:01 +02:00
2024-04-17 21:21:23 +02:00
2025-12-18 15:44:08 +01:00
2024-02-23 09:48:47 +01:00
2025-07-22 18:03:39 +01:00
2025-11-23 17:16:09 +01:00
2025-02-26 09:55:43 +01:00
2024-03-27 07:12:01 +01:00
2024-04-17 21:21:23 +02:00
2022-06-10 13:52:31 +02:00
2024-03-27 07:12:01 +01:00
2024-03-27 07:17:08 +01:00
2025-07-15 12:49:08 +02:00
2025-04-16 08:30:25 +09:00
2024-10-18 18:43:40 +02:00
2024-04-17 21:21:23 +02:00
2025-11-23 17:16:09 +01:00
2025-07-07 17:28:47 +00:00
2024-02-23 09:48:47 +01:00
2025-10-20 10:36:08 +09:00
2025-07-21 19:29:42 +00:00
2024-03-27 07:12:04 +01:00
2024-04-17 21:21:23 +02:00
2025-07-22 18:27:37 +09:00
2024-04-17 21:21:23 +02:00
2025-11-14 17:54:20 +01:00
2024-03-15 04:04:01 +09:00
2024-04-17 21:21:23 +02:00
2024-05-28 14:48:56 +02:00
2024-03-27 07:31:54 +01:00
2024-03-27 07:11:50 +01:00
2024-04-17 21:21:23 +02:00