From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by passt.top (Postfix) with ESMTPS id D93A35A9D27 for ; Thu, 9 May 2024 09:01:09 +0200 (CEST) Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-a599af16934so122256066b.1 for ; Thu, 09 May 2024 00:01:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1715238069; x=1715842869; darn=passt.top; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=CQg6BseRIUUMoDVy0M8zYzOpYj8z6HfHaZuuJQ/uZDI=; b=deK1PmwtYc4tF3gw6znokzUkSUTjKMyjmjUIbLR1kms07sWy4O4yr/BCTaFerUNSY9 fCngT2CRzQajeEOIBQ5sC0k78DvLffRvk4jFMzO2gnc4nc94axW21F4q2Rn9ivmKSIOd 58xFZxuTdU8CPnReSjbTp3IPaNILptgjgs1N3D6pRUbxDUDde9+L8YH/6qf203c6J+V2 NxJLOFGE5KCIQImrd7KiWaVoQXB3H9hI6wJU6/O/HlzhUgwJnGuTY+fOkZo6yEtAoBVi Nyz5vpOpaKY47TG1jcL6++3tutgJ3gJX58AtSfQNJUZWyLaPwvv2RPrkPf7FYK4nUfCs Omqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715238069; x=1715842869; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=CQg6BseRIUUMoDVy0M8zYzOpYj8z6HfHaZuuJQ/uZDI=; b=IZvjcplbKkLyrmoL6D6zUvHuiCFY+OVjjjbv0Net9qeeNHYZobamEmw1JunUXKPphZ Yviyd8TEWzV49kxnmQpcys4oHIkL1vWQSL1jA79Co7qJ5yuqJaxnzUHOscIl3cQHU2bm lfYCEoHOtriyPBOxBNKf7qVD26KwvGuTIFA9UG/EeGkOhQs1/O7FdPYzWMYHFO+JeP+P Di6aqvDKfy1c+DMXY8gDqCYvEGCyYuP2jo64AD1twccfa9r+xQLcwlY5Xp/3pja84fBJ 7XkpIxxriLyxdT0sw6TwpeOHQLxW3Sf4mIsjeZ3eWRiJX7fl5aIbfHCbWIJQPa57vYCZ yujQ== X-Gm-Message-State: AOJu0YymApFlSEKgVLBgeTR0maXeAdlhbJ5FfL2OyJ3uBD51BMafVkat W7k9CaLezKJ8YJLgnM6Hy67JUMQZWUKAIk2oWRiByYIlXsAjZpX1elnA2p5IDw03JuGRCyXPmhD Ly6E0e3vmuTBDVe38ikdPnvbnPWvmZNlpxGe8rIIGUNk0KmVg1N4= X-Google-Smtp-Source: AGHT+IFyTg2MWQZmfmfj9OaqNXDXzmYpIScaXRXEE/IALqi8rccIdMPDzLj03PK252YMbIBUNg8660GKYUSNPje5VkQ= X-Received: by 2002:a50:d6d7:0:b0:572:a16f:294 with SMTP id 4fb4d7f45d1cf-5731da68f6cmr3276500a12.30.1715238068788; Thu, 09 May 2024 00:01:08 -0700 (PDT) MIME-Version: 1.0 From: Danish Prakash Date: Thu, 9 May 2024 12:30:42 +0530 Message-ID: Subject: Setting hostname while spawning pasta To: passt-dev@passt.top Content-Type: text/plain; charset="UTF-8" X-MailFrom: danish.prakash@suse.com X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation Message-ID-Hash: SYAOI4I4BOR2WRDNYIIPGKLOTEKJGLHP X-Message-ID-Hash: SYAOI4I4BOR2WRDNYIIPGKLOTEKJGLHP X-Mailman-Approved-At: Thu, 09 May 2024 14:16:36 +0200 X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Hello I was having a discussion with a colleague of mine on how `pasta` when invoked independently drops you in a new user and network namespace and how that causes some folks to not realize what has happened especially because there's no cue as to what transpired. This is not uncommon though, because a lot of times, folks having issues with pasta while running it with podman, tend to invoke pasta directly to debug. I interacted with Stefano regarding this and he told me that pasta already detaches the UTS namespace and so in order to address this issue, I propose that we set the hostname as part of `pasta_spawn_cmd()`.Doing this would provide users with a clear visual indication that they are in a new user namespace (among other ns but that won't be indicative here) and avoid issues similar to the aforementioned. I'm looking to gather more opinions on how this change, if implemented, would affect the functionality. Looking forward to the discussion. Thank you danishpraka.sh :wq