From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by passt.top (Postfix) with ESMTP id 5D4DD5A02CD for ; Mon, 13 May 2024 18:04:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1715616264; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VInswH/xxVL8U3cjqKPcI64DQiibYfcZATslO2/myhM=; b=MgLWY1R+dVlxLkOKzp27q60mxPM7/62lt6SxG270ktL68ilJbc1uyxmo0XWqt5T4i7OuEq TWz3PjdN0/kxc5ndnUYbgefjNG1kKdJ7eNBqSuGVElM5pLn4ca4XmsFvQYu/NXUe2ArzN2 LjNgr2J/X6NnwWQ8wt1y8vl6p/owDpI= Received: from mail-ej1-f71.google.com (mail-ej1-f71.google.com [209.85.218.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-448-65-GIbHsMpSKhDAlkJNAYA-1; Mon, 13 May 2024 12:03:07 -0400 X-MC-Unique: 65-GIbHsMpSKhDAlkJNAYA-1 Received: by mail-ej1-f71.google.com with SMTP id a640c23a62f3a-a59a0014904so259723266b.2 for ; Mon, 13 May 2024 09:02:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715616163; x=1716220963; h=content-transfer-encoding:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=VInswH/xxVL8U3cjqKPcI64DQiibYfcZATslO2/myhM=; b=mD5DKO7xH04FNqNiKzU6xz/2to6zs8+y3lMQ6nUVJgu5jiXkEwnxgVn1YUBEUj8Vo/ jjswRM67MbLTY5LBdn40MdRA5iloFViYMyG6AQSlNiz6NF/ZiUyL622VQ7LVMoq6Lpgw YiNZzlqd9k16YOsxAQnJYYoOfU1LFI2AgfKS8rJOLfF3M3Gbe/Nh8IlyHHu2+BXtSO+c UeaTGf1V8PWAzJiZ37jA4j6P84RXo031XTaRO7i2DXJikUKb1fCh0vW9mYTZZmgwb2Ye wnx+fbqFkB5fE2BtBjMDZPpDOdre5f9u546rJs2mHw1pZfV75UWyR13upvJswhx1Tqrc TVfQ== X-Forwarded-Encrypted: i=1; AJvYcCW5g1/LFz2EN8Ct3kVvSpNNZmoeCXLM09aIzeVj5Y7HLpIv8bN91Q5qmn97m8uNRvlzmuz/33T4ioCiyQrqtNPlEbbo X-Gm-Message-State: AOJu0Yz81hmJs4LSlAnfYIG7WbjMLqPJLGDHehLM6TAGw0/wnogQbjSw cvuuueTwyf5glYiBpMGjn+ggEnOTgqr7vKgmxbMCOhoG1t6WfaMZM/QhIYY3SIrncY4RL7jMYHf kBe/W8SgsWvSgtvtFqDOI6+5Jh1MqCRDdBlKJS47jtis9A2v5CwcyWwOXcjqvDVQEV0mffYdSN3 bkuHxi8V3cEUNfgf3iY4DR7JMclK7kkY8eJwU= X-Received: by 2002:a17:906:69d7:b0:a59:c681:6314 with SMTP id a640c23a62f3a-a5a2d5cd7admr647504866b.42.1715616162964; Mon, 13 May 2024 09:02:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG+7Oew/c+ZnoIKYfj1qKf2tAAVz9i3S148n9RLzw52Jvc+A+RCdhy9162O0OcVFBMMHJUuDw== X-Received: by 2002:a17:906:69d7:b0:a59:c681:6314 with SMTP id a640c23a62f3a-a5a2d5cd7admr647502466b.42.1715616162417; Mon, 13 May 2024 09:02:42 -0700 (PDT) Received: from maya.cloud.tilaa.com (maya.cloud.tilaa.com. [164.138.29.33]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1781d553sm615538466b.43.2024.05.13.09.02.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 May 2024 09:02:41 -0700 (PDT) Date: Mon, 13 May 2024 18:02:08 +0200 From: Stefano Brivio To: Paul Holzinger Subject: Re: Setting hostname while spawning pasta Message-ID: <20240513180208.45ae9add@elisabeth> In-Reply-To: References: Organization: Red Hat X-Mailer: Claws Mail 4.2.0 (GTK 3.24.36; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Message-ID-Hash: 3ALWNXFPHW7VLMNYQFCLJCFFUZ4P4YNX X-Message-ID-Hash: 3ALWNXFPHW7VLMNYQFCLJCFFUZ4P4YNX X-MailFrom: sbrivio@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Danish Prakash , passt-dev@passt.top 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: On Mon, 13 May 2024 13:59:22 +0200 Paul Holzinger wrote: > [...] > > I don't have an issue with the hostname suggestion but it will not solve > the problem of users not understanding that they are in a new user > namespace. Maybe a more universal solution is to print a log line with a > hint when no explicit command is given. Something like: "Spawning new > shell in user+network namespace". That at least tells the user what > pasta did and works even in cases where the prompt does not contain the > hostname. Hmm, sure, that's probably the clearest indication possible in the general case (minus the fact that it doesn't really help for pasta-in-pasta as Danish pointed out). On the other hand I would find it quite noisy, and the man page already explains what we're doing. Sure, one could run it with '-q', but then it's more typing just to avoid that noise. By the way, I'm (sloowly) reworking the website, and the namespacing aspect is something I plan to show in a separate diagram as well. Plus, I guess we wouldn't print that when a command is explicitly given, but then 'pasta' would print that message, while 'pasta -- sh' wouldn't, so things would quite easily look inconsistent. All in all, I have quite a preference against an additional message, but if more people on the list think it's a nice addition, then let's go for it. -- Stefano