]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: reset loopback block device ownership and mode on detach
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2025 15:18:11 +0000 (17:18 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 24 Jun 2025 11:10:11 +0000 (13:10 +0200)
commit9422ce83c201ab4154de832331f0b351fc5137f6
treedfac93ed8919a7e6302427506b87f99dbc97a5bf
parent7e1647ae4e33dd8354bd311a7f7f5eb701be2391
udev: reset loopback block device ownership and mode on detach

Loopback block devices are agressively reused, without being removed in
between. This means various inode attributes on their device nodes will
– so far – remain in effect between uses of the devices. Since there are
applications which change access mode/ownership of such devices after
attaching files to them, let's undo this again when we detect them to be
unused again.

Fixes: #37745
rules.d/60-block.rules
test/units/TEST-17-UDEV.loop-own.sh [new file with mode: 0755]