]> git.ipfire.org Git - thirdparty/systemd.git/commit
nsresource: allow multiple userns from the same process in parallel
authorLennart Poettering <lennart@poettering.net>
Thu, 6 Nov 2025 09:46:58 +0000 (10:46 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 8 Nov 2025 17:32:37 +0000 (18:32 +0100)
commitaae054e1ab156d44f669c60140c213c0ec35b2d0
tree9e3284422a7fc849cfeb2885447bd998ddf511bb
parent14d9f58823c7c19343246082363873851c893692
nsresource: allow multiple userns from the same process in parallel

When generating a name for a transient userns automatically we so far
just included our PID to make it unique. That doens't really work if
multiple userns shall be kept in parallel by a single process. Let's hence
include a counter as well.
src/shared/nsresource.c