1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-10-26 08:55:18 +03:00
systemd-stable/rules
Thomas Schmitt 02caf697a0 udev: don't import parent ID_FS_ data on partitions
When probing partitions, we inherit important information from the parent
disk device such as ID_MODEL, and usage of such properties is seen to
be acceptable and well established.

However, we need to exclude filesystem information from the properties
that get inherited. Information about the device content should not be
passed on in this way.

For example, Linux distro install media commonly uses an ISO filesystem
plus a partition table. The ISO filesystem is detected on the main disk
device, but we should not pass down those details to the partitions,
some or all of which may be pointing at storage areas completely distinct
from the ISO filesystem.

This is particularly problematic when adding new partitions on media
set up in this way (since the new partitions are then reported to contain
the parent device's ISO filesystem), or when dealing with more unusual
hybrid ISO layouts. The inaccuracy of information here inversely affects
users of blkid and udev's persistent storage symlinks.

Exclude ID_FS_* properties from the inheritance chain to avoid these
problems.

Fixes: #14408
(cherry picked from commit 19212f2781)
(cherry picked from commit 377cc5d91e)
(cherry picked from commit 2b9ec8384c)
2020-02-05 19:54:44 +01:00
..
50-udev-default.rules.in rules: Mark the kvm device as static_node (for s390x and ppc64) (#7795) 2018-01-08 10:49:15 +01:00
60-block.rules rules: watch metadata changes on DASD devices 2018-12-04 20:57:47 +01:00
60-cdrom_id.rules rules: allow SPARC vdisk devices when identifying CD drives (#5599) 2017-03-20 11:22:54 +01:00
60-drm.rules rules: add persistent by-path drm rules (#5337) 2017-02-14 10:18:27 +01:00
60-evdev.rules rules: move input_id rule to a separate file 2017-06-27 13:28:10 +02:00
60-input-id.rules hwdb: add a hwdb file to override ID_INPUT assignments 2017-10-30 10:57:18 +10:00
60-persistent-alsa.rules move imported udev into place 2012-04-04 05:05:07 +02:00
60-persistent-input.rules rules: run all persistent-input rules for rmi and i8042 (#7287) 2017-11-10 10:32:51 +01:00
60-persistent-storage-tape.rules udev-rules: make tape devices also accessable by ENV{ID_SCSI_SERIAL} 2017-12-27 11:37:18 +01:00
60-persistent-storage.rules udev: don't import parent ID_FS_ data on partitions 2020-02-05 19:54:44 +01:00
60-persistent-v4l.rules udev: move all unconditionally installed rules to rules/ 2012-04-14 20:10:03 +02:00
60-sensor.rules rules: allow quirks for platform input accelerometers 2017-03-03 21:23:39 +01:00
60-serial.rules rules: merge tty and serial rules file 2015-03-12 17:22:19 +01:00
64-btrfs.rules.in rules: skip btrfs check if devices are not ready in 64-btrfs.rules (#8304) 2018-02-28 10:36:06 +01:00
70-joystick.rules hwdb: Add ID_INPUT_JOYSTICK_INTEGRATION property (#5413) 2017-06-26 12:17:36 +02:00
70-mouse.rules hwdb: add rule and first entry for PS/2 mice 2014-12-24 08:08:23 +10:00
70-touchpad.rules hwdb: add a 70-touchpad.hwdb to tag internal vs external touchpads 2016-07-01 15:25:34 +10:00
75-net-description.rules rules: net, tty description - ask hwdb explicitly for pci data 2013-07-21 16:33:27 +02:00
75-probe_mtd.rules build-sys: make loadable module support optional 2012-11-20 19:35:27 +01:00
78-sound-card.rules rules: identify internal sound cards on platform bus (#4893) 2016-12-15 23:11:11 +01:00
80-drivers.rules rules: load drivers only on "add" events 2017-09-11 21:04:34 +02:00
80-net-setup-link.rules udev: import the full db on MOVE events for devices without dev_t 2014-09-09 15:03:49 +02:00
99-systemd.rules.in Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
meson.build Drop my copyright headers 2018-06-14 13:03:20 +02:00