Message ID | 6ae7e7114a5c61ae3f87d42a3e1be2e4328be9b4.1646292328.git.development@efficientek.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=4gceVHOn; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=efficientek-com.20210112.gappssmtp.com header.i=@efficientek-com.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=XLfAK4WZ; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=<UNKNOWN>) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4K8NYj1SgKz9sG9 for <incoming@patchwork.ozlabs.org>; Thu, 3 Mar 2022 18:54:49 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=OE9CIWQ95H3OZRx0/J9cglrJO5Q2+Ze+eWP0/YieXwM=; b=4gceVHOnLlZtiY qmdLTjxLOoz6EX/ijKEEWB86B+6xqkNmsztzeGxvhkj+sRagtSnZkLrf/xF5nZHxDb+uTuunywZJC KgVg3u5tBmi5HknwNUAuWj9rwdiE+suF44VzfkGkgkmQbcwnV+8DfM2YyqwZ09ibEWUAX6cxpLSY2 NHzQFKvkeTpb0fK154M/v8ZNWJVKt7wvnBrwafVC4U6G6zPw3ggyeX+V1xuTPwnkq5t+ncBOErLFW kcG45Q+6OS8e8R6BOTHD5kaue/PPKjBMC9zqbLR4E5J/ToRyKiZkkMU28xpDkxLMF0+TcVON/GrE5 0yfKm02i93SkGnTlrD1w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPgII-005dWY-9S; Thu, 03 Mar 2022 07:54:38 +0000 Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nPgIF-005dV8-KR for linux-um@lists.infradead.org; Thu, 03 Mar 2022 07:54:37 +0000 Received: by mail-qv1-xf36.google.com with SMTP id f11so3509702qvz.4 for <linux-um@lists.infradead.org>; Wed, 02 Mar 2022 23:54:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=4RfUVGGxksBD3gk4T6UwPClzMukBHh9UofutJdirbuY=; b=XLfAK4WZLtxg01ZcRrJnXXjERpx/utwflZf2v26cDEQwjnlUr6CjSD8o+rmjR9LRid RXeDR/eajkAM0zZn9saZrCWi1Xmp61vQ1E3AI5nC0o5ZWkBphY7FbXEyzA8/r0WYaepn /MBYLywmn5ibiAM5pWfT5NtUsfHuYVsFmtjSA/a3tJUHZFo6ZEg4GccoFytPojBhmM84 95Xk8AB/310XcNydml+oh1Mk5MOkWdSCUXiepxUGThcV8KhbzW4emV0JbLtcx8RTn9WQ XFztCD9dawWi1fHFCAR8mHl2HwQmhAWKuzegNTMfyjN3s0XpjTNA1fmq6fjie0TIPu8z Xf/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=4RfUVGGxksBD3gk4T6UwPClzMukBHh9UofutJdirbuY=; b=lKsOAxeqzgFs9kf3p0fetdV5yUJZ848XCh709k3W5gvkcfPSAa4bMYHewyibNyyiNP 5Clg6YJkLksj6dcAu+z1F84NqWrHEKcf4gRBNMep/htuTnmrUfvlNuNiF+qfbiVpYCnA b5C6MsVY8yYq/R6FeF8O5R7pS9SJeuU88DQotthV3optepzZYFuhlNc0fwnVxr5WieYK TViZeBjXp7s76Cum5hIz2v030AQIEFt71xOIEtBWCUVfw1JyRIwZ8J//ZtDsBw9iEwI5 RoNQqDLJ2vXsrQJ1+G/lf7hfb74lPT8iozlKZnNoYbJZU7mp65oolJIHlJSttTdNZ1bm JePA== X-Gm-Message-State: AOAM533YEFpXMQ/f14I1t/cJXGR2CCE5fkQGRPU+dmac1XFCu+TfmJXF GGFzEy5DOHlVK6woMs/O2Ss7PyJPje8ljQ== X-Google-Smtp-Source: ABdhPJxpAEj1zRpSVYF/YE20Flkn3SZ9HwYjcpevf6rV0WgYoAr0edXw+etHb6n/i2Fq/kraF9lryw== X-Received: by 2002:ad4:5dc2:0:b0:435:1b92:7aa1 with SMTP id m2-20020ad45dc2000000b004351b927aa1mr4739669qvh.97.1646294074359; Wed, 02 Mar 2022 23:54:34 -0800 (PST) Received: from localhost.localdomain (garza.riseup.net. [198.252.153.109]) by smtp.gmail.com with ESMTPSA id o21-20020a05622a009500b002de9437a361sm1044295qtw.51.2022.03.02.23.54.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 23:54:34 -0800 (PST) From: Glenn Washburn <development@efficientek.com> To: linux-um <linux-um@lists.infradead.org> Cc: Glenn Washburn <development@efficientek.com> Subject: [PATCH 2/4] um: port_user: Allow setting path to port-helper using UML_PORT_HELPER envvar Date: Thu, 3 Mar 2022 01:53:31 -0600 Message-Id: <6ae7e7114a5c61ae3f87d42a3e1be2e4328be9b4.1646292328.git.development@efficientek.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <cover.1646292328.git.development@efficientek.com> References: <cover.1646292328.git.development@efficientek.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220302_235435_690687_F3B63A52 X-CRM114-Status: GOOD ( 11.92 ) X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: This is useful when the uml-utilities user-space package has not been installed by the administrator and an unprivileged user wants to be able to telnet into a UML instance. The user can install the p [...] Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:f36 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-um.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-um/> List-Post: <mailto:linux-um@lists.infradead.org> List-Help: <mailto:linux-um-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-um>, <mailto:linux-um-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" <linux-um-bounces@lists.infradead.org> Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
[1/4] um: port_user: Search for in.telnetd in PATH
|
expand
|
diff --git a/arch/um/drivers/port_user.c b/arch/um/drivers/port_user.c index 0625aa42041d..3e32351dadad 100644 --- a/arch/um/drivers/port_user.c +++ b/arch/um/drivers/port_user.c @@ -167,10 +167,14 @@ static void port_pre_exec(void *arg) int port_connection(int fd, int *socket, int *pid_out) { int new, err; + char *env; char *argv[] = { "in.telnetd", "-L", OS_LIB_PATH "/uml/port-helper", NULL }; struct port_pre_exec_data data; + if ((env = getenv("UML_PORT_HELPER"))) + argv[2] = env; + new = accept(fd, NULL, 0); if (new < 0) return -errno;
This is useful when the uml-utilities user-space package has not been installed by the administrator and an unprivileged user wants to be able to telnet into a UML instance. The user can install the port-helper binary to a writable path and set UML_PORT_HELPER. Fallback to using hardcoded path to port-helper if environment variable is not set. Signed-off-by: Glenn Washburn <development@efficientek.com> --- arch/um/drivers/port_user.c | 4 ++++ 1 file changed, 4 insertions(+)