What is Nostr?
Lennart Poettering /
npub1rk2…zenj
2024-12-13 10:19:26
in reply to nevent1q…3yxv

Lennart Poettering on Nostr: …context of DynamicUser=1: they allow such services to have persistent directories ...

…context of DynamicUser=1: they allow such services to have persistent directories on disk, that are properly owned by the short-lived UID. Implementing this comes with some ugliness however: what happens if I reference some state directory from a DynamicUser=1 service today where it will get UID X assigned, and tomorrow when I start it again it will get UID Y assigned?

Our solution was pragmatic: when this happens we recursively re-chown() the referenced directories…
Author Public Key
npub1rk2uxtv6nk262nucavh259t085a8rhzfaj3vjc9jhzvkyav0rnqqxqzenj