]> git.ipfire.org Git - thirdparty/systemd.git/commit
homework: also apply uid shifting when changing passwords/resizing/updating home...
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Nov 2021 17:34:02 +0000 (18:34 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 24 Nov 2021 17:41:54 +0000 (18:41 +0100)
commita8be09840365e46ea17160aaea1925d34a8432bc
tree4d887f16d7c9cc84b1df23477b906c7339d519df
parent6f2c813667018cc54f127a15a578a74071b0fa24
homework: also apply uid shifting when changing passwords/resizing/updating home areas

This adds uidmap shifting also when resizing/updating/changing
passwords. Prviously I thought we didn't have to, because the user is
not going to access the uidmap if we only quickly activate the home
area. But this thinking is wrong, because the three operations will
result in an update ~/.identity fie to be written, and we should do that
with uidmap applied, so that its ownership maps down to nobody below as
intended.

Fixes: #21441
src/home/homework-luks.c
src/home/homework.c