From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QNp9IUsHXGfljwAAe85BDQ:P1 (envelope-from ) for ; Fri, 13 Dec 2024 10:07:07 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id QNp9IUsHXGfljwAAe85BDQ (envelope-from ) for ; Fri, 13 Dec 2024 11:07:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=coquand.email header.s=fm1 header.b=nNQF63Q3; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="k XcEHwT"; dmarc=pass (policy=none) header.from=coquand.email; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734084427; a=rsa-sha256; cv=none; b=TU91hmXZegE3kVhv+wU7/GZ5OvAyeP86uXSmT9rWch8oYP7GGcgXXTfkAZZsNTirHcrNBQ nq/xYJicZMyxEznLH2+lTMzGXHppZ5hCtj2mTce1I2Ktp9KcNQ6Par8/ih/+SFABO8jpKV cdvVW6Ny+esWING2YeT8urE/+BemrNtGvp0ssDOagkM0BxCB9u1/Qhv2ENsTD4Ev/I/nom k24pU3QYtsyV/UT35KbT0jUZDXSFbhXD7NgHfvcsImtn1tOaMiMiE62XhBCTXA7ZYu3U+W WmJl2IXCmQ8gpPg3VStDBHonuWql+eSBpwvexJk6t66Tx1+lS/5ptir4FXqekg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=coquand.email header.s=fm1 header.b=nNQF63Q3; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="k XcEHwT"; dmarc=pass (policy=none) header.from=coquand.email; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734084427; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=IyOsWPUWE9h029MJyiXMFET0K6+yyekSz6nnPa9GveM=; b=KJfcAsvP2WlJTaAnd8Z6OuOheZmcaVkt89f5D2MylGKonDwvJkjXVVVrP2m6q5CT+svqwF vJp/emJrR+xg4WWU5ODYLNYl7rryxzE6R/gVO3ZgMl8GLOSoZKSr8mAaJyAJhxgXQIq+Jo QzWoJE6hSBoahYH5umoELuJHC5Ldp5Tk++/mazI9HcySawVVfzm31WdXdrt1JwdzWdECza HDQjS8C6GC3YaezyA0aQHcxjYfxYQ2s5jrgjHCTyOsw7JnScKpVviboK5EQZVUCSsnt1en z6s8+LxXS84wDlgRMX8yQL2lJy2+5/oPXu+JWM7chRQvVhYwqC7G68De9Xy4Lw== 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 841575C4FE for ; Fri, 13 Dec 2024 11:07:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tM2Z2-0004qP-Uo; Fri, 13 Dec 2024 05:06:29 -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 1tM2Z0-0004pz-Kf for help-guix@gnu.org; Fri, 13 Dec 2024 05:06:26 -0500 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tM2Yy-00038l-Lg for help-guix@gnu.org; Fri, 13 Dec 2024 05:06:26 -0500 Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 443EF1140135 for ; Fri, 13 Dec 2024 05:06:21 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-06.internal (MEProxy); Fri, 13 Dec 2024 05:06:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=coquand.email; h=cc:content-type:content-type:date:date:from:from:in-reply-to :message-id:mime-version:reply-to:subject:subject:to:to; s=fm1; t=1734084381; x=1734170781; bh=IyOsWPUWE9h029MJyiXMFET0K6+yyekS z6nnPa9GveM=; b=nNQF63Q3SwoCcEo6GmEq6XfKlZqAEnjyJVi7xd7FSk3kaJ4d lQq+ROqDvELw+d48OBQNZG/tP9jIqtmu8MQO0TVXmV2dYyft0b1aEcOOlsjDg+Vv 6q+AvPZp0ID6WmTxi/nRbiQSLrBCe0xVOPu45ss7OA3PfK+lYvyYgxPhL8Jjd+Fs BF/2KQRGdtUcvLa0KKgCTcSfdjTIPlUPR6D8Z08XRzW+QcjrUkSpCcxoBk62pTuX bJM7FIusZT6OG1zv63ZjuK/zbZ3cxOUQzZw+AV/9q0B82O6XlCsx9b6Q/AhJMUa7 wzizM1dZrwZu5xaXieu4DWZ8fnSRNCTOcJTeWg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:message-id :mime-version:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1734084381; x= 1734170781; bh=IyOsWPUWE9h029MJyiXMFET0K6+yyekSz6nnPa9GveM=; b=k XcEHwTH01MqkVZnh3a+rVVKR2e3tF/DBQsuGq5/llpSffHZRVmkvWCbAE7TE02q1 uNl1APf9sJuA8pZQYIn9mPo8qb8xXsS3fTZBoyL52BLBhRlYAgMpItjbTVvlGEyF 4Ix7WlfooGa2BrVaxPcn/f5xc6GaEih8k1erBgEf/+2RtvshPOwOD1SnGbZbSn+f Dc8zprpW1Ze5ejYpfBEKhgK2EggkLm/koomXfjS/qsD4fZEiBB2ln/yZSN25oI1s 5VEqqKuipoGwO/KCnmDQF80CxWdU3Kd8sI4R+PKMZoKy8Cudxl2hQ3nvNxzNcq+m p6MvVCAQNV4zNIpr0PPrQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrkeejgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdpuffr tefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkf ggtgesthdtredttddttdenucfhrhhomhepofgrrhgtucevohhquhgrnhguuceomhgrrhgt segtohhquhgrnhgurdgvmhgrihhlqeenucggtffrrghtthgvrhhnpefhvdefleffvdehge eivedtfeefvedvteehhfejfeeujeeltdevjedvtdduteeiffenucevlhhushhtvghrufhi iigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrghrtgestghoqhhurghnugdrvg hmrghilhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthht ohephhgvlhhpqdhguhhigiesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: i587e488e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 13 Dec 2024 05:06:20 -0500 (EST) From: Marc Coquand To: help-guix@gnu.org Subject: least-authority-wrapper - clone: permission not permitted Date: Fri, 13 Dec 2024 12:06:16 +0200 Message-ID: <874j37kicn.fsf@coquand.email> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=202.12.124.148; envelope-from=marc@coquand.email; helo=fout-b5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 841575C4FE X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.40 X-Spam-Score: -8.40 X-TUID: vdil8PYe9SUh Heya, I'm trying to /wrap/ my head around least-authority-wrapper. Specifically, I have a guile script that sends an email with msmtp and fetches secrets using cat. This is a script that is run by the laminar service when a build job is complete. Since it doesn't need to access all secrets I make available through sops-guix, I wanted to try to containerize it and lock it down from accessing files outside of the ones it needs. This is the program that I have: (least-authority-wrapper (program-file "after" notify-mail-gexp) #:name "after" #:user "laminar" #:group "laminar" #:namespaces '(mnt) ;; This is the namespace causing issues #:mappings (list (file-system-mapping (source (file-append nss-certs "/etc/ssl/certs")) (target source) (writable? #t)) (file-system-mapping (source "/var/lib/laminar") (target source) (writable? #t)) (file-system-mapping (source "/run/secrets/after") (target source) (writable? #t))) #:preserved-environment-variables '( "USER" "TERM" "JOB" "RESULT" "RUN" "SSL_CERT_FILE" "SSL_CERT_DIR" "GIT_SSL_CAINFO")) After some debugging, I found that it was the namespace 'mnt that was causing issues, the script works when I remove it. The error I'm getting is Backtrace: 5 (primitive-load "/var/lib/laminar/cfg/after") In ice-9/eval.scm: 191:35 4 (_ #f) In gnu/build/linux-container.scm: 300:8 3 (call-with-temporary-directory #) 397:16 2 (_ "/tmp/guix-directory.nIT1Mt") 239:7 1 (run-container "/tmp/guix-directory.nIT1Mt" (#< ?) ?) In guix/build/syscalls.scm: 1143:12 0 (_ 131089) guix/build/syscalls.scm:1143:12: In procedure clone: 131089: Operation not permitted When I try to invoke the script. Any clue why I'm getting the operation not permitted error? -- Marc