From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id qB/OHqBDzmVYZQAA62LTzQ:P1 (envelope-from ) for ; Thu, 15 Feb 2024 18:02:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qB/OHqBDzmVYZQAA62LTzQ (envelope-from ) for ; Thu, 15 Feb 2024 18:02:24 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=j+61UAmG; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708016539; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=/zThdLbg9czqWUbIeG++YgwLdl92nJSwaNu404nSbpk=; b=GF9U9TF508iGtrdz16ruuT3tNopeeLOL3WEMKY6N4p98IP+Ou7g5sRemMitnocY0KWT4LR k2hrb82L3+nXtr8RoOKHSzOiBiRXJiI53hOukMBto9K9u50pnV9iKK2/7TFVRFemABMlCR zjgzf5F/jJI5hLfl+ttNJ9NrxXgL1QWGrJvaHnFWTMftHzFH9Lpa+3oME7cfL9OGebxUBh NSdfuaXvEaz9kr1OA5Hg6myfR0HK2H+mSFzBe4Xaeh7wK1icrAufoiCLUvbN3BSwcee6uC T/sTvuEK+iYzKCHtyQtQlNciS+ezknuqNDEJ8yGr2cPyKEY1MZmyrycqaABoNw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=j+61UAmG; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708016539; a=rsa-sha256; cv=none; b=T/CHbAfylDY57xMaPNIkutu4Q4ZGw91XvC8JaYaNDjl12EK+JnVwuBuUSKyEUCHM3NpPGK iP1ZvUGVVG0ZwvNvJsEtnPj3RqVhqHgOEzqsfn+RhY/FZADpMa4P7amzkqpm/QI01LJBXi +s8Fv5kteYR7g1fmlXYzGEvAHfwqzsupdR08FkaaaDYdcQ8ns22bmNreYrUnxAIAvun6fY 0Z6vsq8s9c4WYUsYNkymHKsE32SJav6E22nKW5mt3TRaB4YqvrNg9NRPwD3XbgrqXEwkK8 /zXvJzkXg9dY8asFQPXgITGFa0Ic1aZ5GS1gwvCKyZ7pGaSFLZUJoaoIGSVNHw== 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 4A5E1628A5 for ; Thu, 15 Feb 2024 18:02:19 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1raf6g-0008In-3T; Thu, 15 Feb 2024 12:01:06 -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 1raf60-0007n8-QA for help-guix@gnu.org; Thu, 15 Feb 2024 12:00:26 -0500 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1raf5z-0007mz-3m for help-guix@gnu.org; Thu, 15 Feb 2024 12:00:24 -0500 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-411f8e84e4fso644785e9.0 for ; Thu, 15 Feb 2024 09:00:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708016419; x=1708621219; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=/zThdLbg9czqWUbIeG++YgwLdl92nJSwaNu404nSbpk=; b=j+61UAmGwZL7Oso80951ggjEN8mrSDmcGrR1AoaYQ1YzRM2ZVKQGbrJJjNabvznPc4 7ASkEcvk1QPFwbu7l4cCAyELymBwWxzW393HASdyNKgUHLWx0bfQyH3DAdb/8fERC+7z xmx2Zec37h9V1wQRjhLOX4d6342AVdmhkKrNJjmOIf4omISpJ1vE7i4jOJYg89UOOL+i kEkbc1rRgPdSvq5WrxVi4IJyhni3AGhqAXl8JuOGzgm69GD0dT06XOKt2A/XyosHeeGV dAB8GIP/E083moOuVc7BdX6QM4VHr2gePg3ynvE4Yog62ulL/6rudPb+Vi8SQ+pn96IV vheQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708016419; x=1708621219; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=/zThdLbg9czqWUbIeG++YgwLdl92nJSwaNu404nSbpk=; b=gnnHq14I+nLkxAO34JFgDMamh6jMSQhT08AqxxuTNfF0SxZnBDJhclnZGvXnm+UA4B VSKYCaLVAGTroubdUKbKrz1XvuBODFbPJZ8LCmwqnVCvQpMmGhOrijs8OVjmLYfBnYkC zZntA4EZamMtKaVar9NjB9hYkTlC1UzDcfTZWKj2xzKep+k5nl0iOksWkcYyn76KI0KW yreQ2NcuvR7muWRp32AW2N9zMcpkDYQldVKe9VSOfdX45mOgJfXRwisGDONbneO11BJK HofXS2bH8nFwbC9SEslAWfWnVX1pDsfaO9BxSXcWI3ZLEDjWZfAEVf24WD9gy0Ty7ST3 /h4A== X-Forwarded-Encrypted: i=1; AJvYcCWpg/fSsHlE5Q2KKslasYOPX5ZFYU5jSiM4KwDZwekPN7XXI6fwQjE3bTfW8jcc9qAshr/7NX2qIyiwMFfIqMJmOw== X-Gm-Message-State: AOJu0YxWq7mAynRHAej1Z9uxemAUpF5oJS56maLnTn7S77nBp+c63SVi cBhiUzR1LT9HK77eXgSrC205Qirp+rQa9O2NG+iBRFjG8L8fxLyoOuGQoeJb X-Google-Smtp-Source: AGHT+IHV3mnMAeaLeInw8P7g2fXDWJVkbK1KDp8zK3tSlYcDzx47JxxRMHRXPpx32EGmzmRCUbWzGA== X-Received: by 2002:a05:6000:1d8e:b0:33b:50e9:738 with SMTP id bk14-20020a0560001d8e00b0033b50e90738mr1861498wrb.7.1708016419486; Thu, 15 Feb 2024 09:00:19 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:7d85:9c0b:111:5112]) by smtp.gmail.com with ESMTPSA id t18-20020a1c7712000000b004122fbf9253sm686915wmi.39.2024.02.15.09.00.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 09:00:18 -0800 (PST) From: Simon Tournier To: Ben Weinstein-Raun , help-guix@gnu.org Subject: Re: Running untrusted code as root in a `guix system vm`? In-Reply-To: <7fd0d86d-9e36-4949-8917-8daf3181c86f@benwr.net> References: <7fd0d86d-9e36-4949-8917-8daf3181c86f@benwr.net> Date: Thu, 15 Feb 2024 17:56:09 +0100 Message-ID: <87jzn56506.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::333; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x333.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -5.91 X-Spam-Score: -5.91 X-Migadu-Queue-Id: 4A5E1628A5 X-TUID: BGqtc47VyFfK Hi, On ven., 29 d=C3=A9c. 2023 at 23:40, Ben Weinstein-Raun wr= ote: > I'm considering running some software inside a VM created using `guix > system vm`. The easiest thing to do would be to run the virtualized > software as root. Normally I wouldn't think twice about that, but iiuc > the guest will have the host's /store mounted. Am I right that this > should make me nervous about running untrusted things as root in the VM? > Or is there some trick by which a root process in the VM is prevented > from destructively changing /store? What do you mean by =E2=80=9Cdestructively changing /store=E2=80=9D? Cheers, simon