From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id EPosGRP1cV8RXQAA0tVLHw (envelope-from ) for ; Mon, 28 Sep 2020 14:37:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id OPsgFRP1cV9GNwAA1q6Kng (envelope-from ) for ; Mon, 28 Sep 2020 14:37:07 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 58D559402AD for ; Mon, 28 Sep 2020 14:37:06 +0000 (UTC) Received: from localhost ([::1]:59848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kMuH1-0007Zg-Iw for larch@yhetil.org; Mon, 28 Sep 2020 10:37:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMuF5-0005s7-6W for guix-patches@gnu.org; Mon, 28 Sep 2020 10:35:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42143) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kMuF4-00054f-FE for guix-patches@gnu.org; Mon, 28 Sep 2020 10:35:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kMuF4-0007jG-An for guix-patches@gnu.org; Mon, 28 Sep 2020 10:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#43673] [PATCH] linux-container: Reset jailed root permissions. Resent-From: Jelle Licht Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 28 Sep 2020 14:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43673 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 43673@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160130368429676 (code B ref -1); Mon, 28 Sep 2020 14:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Sep 2020 14:34:44 +0000 Received: from localhost ([127.0.0.1]:53689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMuEm-0007ia-DV for submit@debbugs.gnu.org; Mon, 28 Sep 2020 10:34:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:50468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kMuEj-0007iR-5u for submit@debbugs.gnu.org; Mon, 28 Sep 2020 10:34:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55866) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMuEi-0005mn-QQ for guix-patches@gnu.org; Mon, 28 Sep 2020 10:34:40 -0400 Received: from mail1.fsfe.org ([2001:aa8:ffed:f5f3::151]:40294) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kMuEg-00052d-U8 for guix-patches@gnu.org; Mon, 28 Sep 2020 10:34:40 -0400 From: Jelle Licht Date: Mon, 28 Sep 2020 16:34:33 +0200 Message-Id: <20200928143433.31994-1-jlicht@fsfe.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2001:aa8:ffed:f5f3::151; envelope-from=jlicht@fsfe.org; helo=mail1.fsfe.org X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=fsfe.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 4.09 X-TUID: kBUdLT7y4QeR * gnu/build/linux-container.scm (mount-file-systems): Add 'chmod' call. --- gnu/build/linux-container.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gnu/build/linux-container.scm b/gnu/build/linux-container.scm index 2d4de788df..4a8bed5a9a 100644 --- a/gnu/build/linux-container.scm +++ b/gnu/build/linux-container.scm @@ -170,7 +170,8 @@ for the process." (pivot-root root put-old) (chdir "/") (umount "real-root" MNT_DETACH) - (rmdir "real-root"))) + (rmdir "real-root") + (chmod "/" #o755))) (define* (initialize-user-namespace pid host-uids #:key (guest-uid 0) (guest-gid 0)) -- 2.28.0