homework: teach luks backend uid mapping
authorLennart Poettering <lennart@poettering.net>
Tue, 26 Oct 2021 16:34:57 +0000 (18:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 28 Oct 2021 06:17:46 +0000 (08:17 +0200)
commit1147c538bbb6a2d3d5ba2e40f1437bcbeb22b33e
treed4c93fc887ad1e8189b19ed051d3501e19998552
parenta2bc39786a8e33daa47ad7bc4fc241532ce19b80
homework: teach luks backend uid mapping

This teachs the LUKS backend UID mapping, similar to the existing
logic for the "directory", "subvolume" and "fscrypt" backends: the files
will be owned by "nobody" on the fs itself, but will be mapped to
logging in user via uidmapped mounts.

This way LUKS home dirs become truly portable: no local UID info will
leak onto the images anymore, and the need to recursively chown them on
activation goes away. This means activation is always as performant as
it should be.
src/home/homework-luks.c
src/home/homework-mount.c
src/home/homework.c