From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 01 17:39:38 2023 Received: (at submit) by debbugs.gnu.org; 1 Dec 2023 22:39:38 +0000 Received: from localhost ([127.0.0.1]:56247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9CAc-0004N7-ID for submit@debbugs.gnu.org; Fri, 01 Dec 2023 17:39:38 -0500 Received: from lists.gnu.org ([2001:470:142::17]:56506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9CAY-0004Mp-8O for submit@debbugs.gnu.org; Fri, 01 Dec 2023 17:39:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9CAH-0008Ks-17 for guix-patches@gnu.org; Fri, 01 Dec 2023 17:39:17 -0500 Received: from confino.investici.org ([2a11:7980:1::2:0]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r9CAE-0002P2-GY; Fri, 01 Dec 2023 17:39:16 -0500 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4ShnzQ3BMqz110w; Fri, 1 Dec 2023 22:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1701470338; bh=hBRFRVDBVkWDRE/3jbLhtGZMysPcRnRy2qlWtubmvIg=; h=Date:To:Cc:From:Subject:From; b=DyVfQ1OfWW4coTznzQwZ0awRcK3bQ4psY0ifTomhMexW5Rw0KbCyrkW0Dk79MDbnn xNrgIoI2nPZ48xHPcW8uYDiTZDvdDp69zAam4g8smM/ZLR3shVAnSNTVQzwJP+153L JloGIbwLgspSaYSGWlJMz+yBWAOZ9kPS7DLepLb4= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4ShnzQ1vpCz110s; Fri, 1 Dec 2023 22:38:58 +0000 (UTC) Message-ID: <6f940b49-d465-3b45-7963-59a0885968fb@autistici.org> Date: Fri, 1 Dec 2023 23:38:57 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 To: guix-patches@gnu.org Content-Language: en-US From: paul Subject: oci-container-service: hotfix Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a11:7980:1::2:0; envelope-from=goodoldpaul@autistici.org; helo=confino.investici.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?Q?Ludovic_Court=c3=a8s?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Hello Ludo’ , I just managed to read my Guix email after some  time. I just guix pulled and realized there's a bug at [0]. The fix is trivial and I'm sending it as a patch. I'm also working on a test suite to prevent this to happen in the future. Thanks for all your work, giacomo [0]: https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/docker.scm#n377 From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 01 17:45:34 2023 Received: (at 67574) by debbugs.gnu.org; 1 Dec 2023 22:45:34 +0000 Received: from localhost ([127.0.0.1]:56256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9CGL-0004Wo-NV for submit@debbugs.gnu.org; Fri, 01 Dec 2023 17:45:34 -0500 Received: from confino.investici.org ([93.190.126.19]:35143) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r9CGJ-0004Wf-Pk for 67574@debbugs.gnu.org; Fri, 01 Dec 2023 17:45:32 -0500 Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4Shp6n38qBz1113; Fri, 1 Dec 2023 22:45:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1701470721; bh=YfpJCavfd/dwotpkHcAVxL6odk3crkFE9hO/XlQIxJc=; h=From:To:Cc:Subject:Date:From; b=RcfVwVxWpx4k5cHAAaYLv1p/J0hXykO1BlCipvhz8BNxDrh/xtlCpJTDSBVAzRfTv rEmREF6YlZ0sMgRPxOwX3BbcdL1SRfECPJpURsGwShcIPMYlT6wr0PiujopdAubIYO 20KhkPByxEl54d1MJRwkjDC/CWwm+5sMHc3oF4y0= Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4Shp6n2LTXz110s; Fri, 1 Dec 2023 22:45:21 +0000 (UTC) From: Giacomo Leidi To: 67574@debbugs.gnu.org Subject: [PATCH] services: Fix oci-container-service-type container user. Date: Fri, 1 Dec 2023 23:45:05 +0100 Message-ID: <20231201224505.586-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 67574 Cc: Giacomo Leidi X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) The oci-container-configuration supports two user fields: one is the user, from the host system, under whose authority the OCI-backed Shepherd service is run; the other is an optional user/UID that can be passed to the docker run invokation to override the user defined in the OCI image. The user from the host system is incorrectly passed to docker run command, this patches reverts the incorrect behavior and passes the correct container-user field value. * gnu/services/docker.scm (oci-container-configuration): Fix the user passed to the docker run invokation. --- gnu/services/docker.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/services/docker.scm b/gnu/services/docker.scm index ebea0a473a..72ef7d74db 100644 --- a/gnu/services/docker.scm +++ b/gnu/services/docker.scm @@ -374,7 +374,7 @@ (define oci-container-configuration->options (network (oci-container-configuration-network config)) (user - (oci-container-configuration-user config)) + (oci-container-configuration-container-user config)) (workdir (oci-container-configuration-workdir config))) (apply append base-commit: 842a11f1caa1bb929c427722ad9d7b7c1ff65727 -- 2.41.0 From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 10 16:24:17 2023 Received: (at 67574-done) by debbugs.gnu.org; 10 Dec 2023 21:24:17 +0000 Received: from localhost ([127.0.0.1]:51835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCRHc-0005fZ-Lw for submit@debbugs.gnu.org; Sun, 10 Dec 2023 16:24:17 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rCRHa-0005fM-VU for 67574-done@debbugs.gnu.org; Sun, 10 Dec 2023 16:24:15 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rCRHH-0001DB-4t; Sun, 10 Dec 2023 16:23:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=MlMHKQmKGsQOwzwRLZL/+7jqm12en6QuTVS41t7ehng=; b=myWdcVaKYjLo1FPnDGQN eBFA9yBpUO6YDK7TcVKzkx0BjesV07oLtF5CPfnnhSj/m2JmWkuoXhnJ/k3SIgtjux8csQAuIOBkz 3tfZOQChRmS5RUkIGexD+COKskDrBF3Ij+vpm/7b0GgwX1NqHh1XCjmPrYQY5DwZgDui9KiNXFxz5 l+o7oOjRX7JNW/qdqFcrJhOsHcFgipStQsaXfKQlfVK+f40HWLw6ow2b8uTrv924IRzWbPImpfAxa mhKRUft7zmaPFcNfwphWF+G20v53zZi52RifK46ZXLRqSpqEfxlxkiN9dRSS3BmLXx6wKtog2BUpP 5DUBDplrPrSDtw==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Giacomo Leidi Subject: Re: bug#67574: oci-container-service: hotfix In-Reply-To: <20231201224505.586-1-goodoldpaul@autistici.org> (Giacomo Leidi's message of "Fri, 1 Dec 2023 23:45:05 +0100") References: <6f940b49-d465-3b45-7963-59a0885968fb@autistici.org> <20231201224505.586-1-goodoldpaul@autistici.org> Date: Sun, 10 Dec 2023 22:23:53 +0100 Message-ID: <871qbt4uqe.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 67574-done Cc: 67574-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Giacomo Leidi skribis: > The oci-container-configuration supports two user fields: one is the > user, from the host system, under whose authority the OCI-backed > Shepherd service is run; the other is an optional user/UID that can be > passed to the docker run invokation to override the user defined in the > OCI image. > > The user from the host system is incorrectly passed to docker run > command, this patches reverts the incorrect behavior and passes the > correct container-user field value. > > * gnu/services/docker.scm (oci-container-configuration): Fix the user > passed to the docker run invokation. Applied, thanks! From unknown Sat Aug 16 16:18:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 08 Jan 2024 12:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator