Alexander Larsson
db3a785241
Add test coverage for --persist
...
This adds three "positive" tests: the common case --persist=.persist, the
deprecated spelling --persist=/.persist, and the less common special case
--persist=. as used by Steam.
It also adds "negative" tests for CVE-2024-42472: if the --persist
directory is a symbolic link or contains path segment "..", we want that
to be rejected.
Reproduces: CVE-2024-42472, GHSA-7hgv-f2j8-xw87
[smcv: Add "positive" tests]
[smcv: Exercise --persist=..]
[smcv: Assert that --persist with a symlink produces expected message]
Co-authored-by: Simon McVittie <smcv@collabora.com >
Signed-off-by: Simon McVittie <smcv@collabora.com >
2024-08-14 13:43:54 +01:00
..
2016-02-25 15:27:37 +01:00
2017-05-10 11:54:27 +02:00
2022-08-22 19:48:10 -07:00
2021-02-09 09:33:57 +01:00
2022-05-03 13:54:23 +02:00
2022-08-16 13:27:04 +02:00
2019-12-17 14:55:13 +01:00
2022-08-22 19:48:10 -07:00
2019-10-09 14:25:44 +02:00
2022-06-16 13:49:45 +02:00
2022-08-22 19:48:10 -07:00
2022-06-24 15:11:41 -07:00
2020-10-08 09:14:51 +02:00
2022-05-03 13:54:23 +02:00
2022-05-03 13:54:23 +02:00
2024-03-12 08:32:30 -05:00
2023-11-14 21:31:34 +00:00
2022-05-03 13:54:23 +02:00
2022-06-16 13:49:45 +02:00
2022-08-22 19:48:10 -07:00
2019-10-07 11:38:24 +02:00
2020-05-04 16:32:22 +02:00
2019-11-26 16:37:01 +01:00
2019-10-02 14:57:11 +02:00
2016-02-25 19:03:09 +01:00
2016-05-02 10:46:51 +02:00
2022-05-03 13:54:23 +02:00
2023-01-30 11:51:00 +00:00
2021-04-12 11:07:10 +02:00
2022-05-03 13:54:23 +02:00
2024-04-24 18:20:07 +01:00
2021-04-16 08:57:20 +02:00
2020-03-20 15:37:10 +01:00
2024-04-24 18:20:07 +01:00
2020-03-20 15:37:10 +01:00
2023-11-14 21:26:46 +00:00
2022-05-03 13:54:23 +02:00
2022-06-24 15:11:41 -07:00
2022-06-16 13:49:45 +02:00
2024-03-12 08:32:30 -05:00
2023-11-14 21:26:46 +00:00
2022-05-03 13:54:23 +02:00
2022-05-03 13:54:23 +02:00
2022-05-03 13:54:23 +02:00
2022-01-18 15:30:12 +00:00
2020-08-17 09:21:30 +02:00
2022-08-22 19:48:10 -07:00
2022-05-03 13:54:23 +02:00
2022-05-03 13:54:23 +02:00
2024-04-24 18:20:07 +01:00
2024-08-14 13:43:54 +01:00
2023-03-16 09:55:13 +00:00
2022-05-03 13:54:23 +02:00
2022-05-03 13:54:23 +02:00
2022-05-03 13:54:23 +02:00
2022-05-03 13:54:23 +02:00
2021-10-27 10:58:38 +01:00
2024-04-24 18:20:07 +01:00
2022-05-03 13:54:23 +02:00
2019-10-09 14:25:44 +02:00
2020-10-29 15:30:35 +01:00
2019-05-06 13:58:58 +00:00
2019-10-02 14:57:11 +02:00
2023-03-16 09:55:13 +00:00
2022-08-22 19:48:10 -07:00
2022-05-03 13:54:23 +02:00
2023-11-14 21:27:31 +00:00
2023-03-16 09:55:13 +00:00
2022-05-03 13:54:23 +02:00
2021-03-11 13:31:17 +01:00