Lennart Poettering
e276965280
dissect-image: enforce validatefs xattrs when mounting partitions
...
So far the constraints a file system declares about itself via the
user.validatefs.* xattrs were only checked by systemd-validatefs@.service
for file systems mounted via .mount units. Let's validate them also when
mounting partitions of DDIs, i.e. for systemd-dissect, systemd-nspawn,
portabled, sysext, RootImage= and mountfsd.
Any constraint that is set must be fulfilled in full: if a file system
declares GPT label or type constraints but isn't placed on a GPT
partition (for example because it is a bare file system image, or on an
MBR partition table) mounting is refused. If the partition is Verity
protected, the constraints must be fulfilled by the Verity hash
partition too, which matches the behaviour of systemd-validatefs.
Validation is done when the superblock is created, i.e. on the mountfsd
side if mountfsd is used. It can be turned off via
$SYSTEMD_DISSECT_VALIDATEFS=0. If validation fails, mounting returns
-EHWPOISON.
2026-10-17 17:44:29 +02:00
..
2026-01-31 01:11:11 +09:00
2026-04-14 17:32:37 +01:00
2022-05-21 18:09:50 +02:00
2026-02-12 17:49:19 +00: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
2026-01-31 01:11:11 +09:00
2024-07-12 14:38:09 +01:00
2026-02-09 11:01:15 +01:00
2026-01-31 01:11:11 +09:00
2025-11-12 23:01:35 +00:00
2026-01-31 01:11:11 +09:00
2026-10-02 12:52:24 +02:00
2024-02-23 09:48:47 +01:00
2026-02-18 03:28:12 +09:00
2026-01-31 01:11:11 +09:00
2026-09-17 11:49:45 +09:00
2025-04-25 00:42:24 +01:00
2024-03-27 07:11:55 +01:00
2026-03-24 17:55:26 +01:00
2026-10-06 10:19:17 +02:00
2026-04-13 16:41:33 +01:00
2026-10-03 16:12:54 +02:00
2026-10-05 09:35:58 +02:00
2026-01-31 01:11:11 +09:00
2024-12-19 15:35:55 +01:00
2026-01-31 01:11:11 +09:00
2026-09-17 11:49:45 +09:00
2024-06-03 15:22:54 +09:00
2026-01-31 01:11:11 +09:00
2026-01-31 01:11:11 +09:00
2022-11-02 07:31:18 +09:00
2025-07-07 17:28:47 +00:00
2026-01-31 01:11:11 +09:00
2025-11-19 20:00:25 +01:00
2024-12-19 15:35:55 +01:00
2026-10-17 17:44:29 +02:00
2026-10-05 09:35:58 +02:00
2026-01-31 01:11:11 +09:00
2019-12-11 17:04:20 +01:00
2026-02-12 17:49:19 +00:00
2026-09-17 11:49:45 +09:00
2026-10-02 14:58:43 +02:00
2025-05-14 18:06:04 +02:00
2025-12-28 09:31:47 +00:00
2026-09-17 11:49:45 +09:00
2026-02-09 02:36:50 +01:00
2026-01-16 22:56:08 +09:00
2026-06-06 13:44:49 +01:00
2024-04-17 21:21:23 +02:00
2026-01-31 01:11:11 +09:00
2026-03-12 09:37:24 +01:00
2026-01-31 01:11:11 +09:00
2026-10-02 14:56:31 +02:00
2026-04-09 22:47:10 +02:00
2025-10-24 01:52:59 +09:00
2025-11-25 22:52:10 +09:00
2026-01-31 01:11:11 +09:00
2026-01-31 01:11:11 +09:00
2026-10-05 09:35:58 +02: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
2026-01-29 00:40:18 +09:00
2026-02-01 09:40:10 +01:00
2026-09-17 11:49:45 +09:00
2025-11-23 17:16:09 +01:00
2026-01-31 01:11:11 +09:00
2026-01-31 01:11:11 +09:00
2026-07-02 15:05:14 +01:00
2026-09-17 11:49:45 +09:00
2026-02-09 09:36:53 +01:00
2026-09-17 11:49:45 +09:00
2025-07-22 18:03:39 +01:00
2026-09-17 11:49:45 +09:00
2026-02-12 17:49:19 +00:00
2026-06-01 15:06:20 +01:00
2024-04-17 21:21:23 +02:00
2026-03-12 09:38:03 +01:00
2026-01-31 01:11:11 +09:00
2026-09-17 11:49:45 +09:00
2026-01-30 13:19:33 +09:00
2026-01-31 01:11:11 +09:00
2025-04-16 08:30:25 +09:00
2026-01-31 01:11:11 +09:00
2024-04-17 21:21:23 +02:00
2026-10-16 09:16:07 +02:00
2026-10-16 09:16:07 +02:00
2026-05-14 08:55:44 +02:00
2024-02-23 09:48:47 +01:00
2026-02-24 18:29:37 +01:00
2026-07-12 23:09:01 +02:00
2026-01-31 01:11:11 +09:00
2024-04-17 21:21:23 +02:00
2026-08-16 10:25:33 +01:00
2026-01-31 01:11:11 +09:00
2026-10-14 15:24:14 +02:00
2024-03-15 04:04:01 +09:00
2026-01-31 01:11:11 +09:00
2026-09-22 18:46:41 +02:00
2024-03-27 07:31:54 +01:00
2026-09-17 11:49:45 +09:00
2026-04-02 12:55:33 +02:00