]> git.ipfire.org Git - thirdparty/systemd.git/commit
homed: keep "pinning" fd open while home dir active
authorLennart Poettering <lennart@poettering.net>
Sat, 28 Aug 2021 05:36:25 +0000 (07:36 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 11 Oct 2021 14:00:34 +0000 (16:00 +0200)
commit0c71e3ef247aaa74dde6f3e017c4478c6a1ed7e4
tree5868c747a778a10547960348bba1136c8a5653c9
parentbdfe7ada0d4d66e6d6e65f2822acbb1ec230f9c2
homed: keep "pinning" fd open while home dir active

The pin fd keeps the mount busy, ensuring that unmount requests need to
go through us.

Note that this doesn't change too much IRL, since a logged in user
generally has processes keeping the home dir busy anyway. However, in
some corner cases it is safer to protect from accidental unmounts this
way. (e.g. if user manually called "homectl activate" first).
src/home/homed-home.c
src/home/homed-home.h