]> git.ipfire.org Git - thirdparty/systemd.git/commit
nsresourced: add ability to mangle specified name if necessary
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Nov 2024 09:23:02 +0000 (10:23 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 8 Jan 2025 14:12:02 +0000 (15:12 +0100)
commitee6fd7ef82522d538dd513e8aabf6d29ece4dc92
tree1f4a3898dddacfb5abb90340b03b55daf7c1c8af
parent364e275319d58c2d9c793b39e390f5d05574add0
nsresourced: add ability to mangle specified name if necessary

Let's optionally mangle any passed name on the server side so that it is
useful for identifying a userns, if it isn't suitable for that
right-away. This mostly means truncating it if too long.

It's just too nasty to leave this to the client side, since they'd have
to understand the precise rules for naming userns then.

While we are at it, add full Varlink IDL comments.
src/nsresourced/nsresourcework.c
src/shared/nsresource.c
src/shared/varlink-io.systemd.NamespaceResource.c