From: Lennart Poettering Date: Wed, 8 Jan 2025 20:36:37 +0000 (+0100) Subject: nsresource: optionally mangle userns names passed to nsresourced (#35900) X-Git-Tag: v258-rc1~1664 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ee1171cbb739fcb54f9502621cebec6ea71b95d;p=thirdparty%2Fsystemd.git nsresource: optionally mangle userns names passed to nsresourced (#35900) We enforce quite strict rules on naming userns we assign uid ranges to for users. So strict that they are hard to get right for clients. hence, let's optionally mangle provided strings so that they work for us. This should make it much easier to work with the API, as something reasonable happens regarldess what kind of garbage a client sets as name. mangling the name is opt-in for clients, so that there's tight control for the client on the name, but also "fire and forget". --- 0ee1171cbb739fcb54f9502621cebec6ea71b95d