From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id oH9eCTwhMGVwVAAAG6o9tA:P1 (envelope-from ) for ; Wed, 18 Oct 2023 20:17:32 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oH9eCTwhMGVwVAAAG6o9tA (envelope-from ) for ; Wed, 18 Oct 2023 20:17:32 +0200 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 CA16A693C8 for ; Wed, 18 Oct 2023 20:17:30 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector2 header.b=TxIxfZiU; 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=quarantine) header.from=runbox.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1697653052; 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=JqWS980c1yFZow/1RGoZ11TLG5DUA2ht+eSV7VPKDnc=; b=I//XHMRQGT+CFfSyDSDE6jEqyHBaV2/9FMaEBhgqCILLDHmSG+oeh5/OOmzncnr+qzuUwe Clq+/J/H8liR8XbphiSqycWvLL39Zxpk39SYmBASQucxO6axgRrzqscX9qEEek4inpjTnz euJzMveTQVX8BtQbUx1ZMbbBlna5QbpmZS6U3xb7tTe9dh34+OVNLuaTjiHpSMgT3KvBd8 Ij7wpZPXOyitWeykouQipghXfIS7B2Nbw3t7BQmabeZzOskfZ15eTux46Q4YNfMdb8ugz9 /x3Ydncv/ElCKxTS8Nax0kLkUavDu2E+IOFotidzHTUgx5HtK7gLBwIREbcSMw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1697653052; a=rsa-sha256; cv=none; b=S1naMpVEOpCOu3U1vP+9ZWrW5ZnLtGMMt6uXtlU2vXdLDSvZ5VlmbazezBqoX3G82atXE/ qgdxU1mRzom6UPGzrRBLkNy/m00EnU1ycejZX+Dyd+F3FRXepF1rvN5uXKN6IwBLkWfw0u qzdQqvhKrMuarTIAFhlZdPJHzWCpJJhaDeya4aIrRB4PjZZ7PgglzVC7hKVFusVs98Lysp t7PdXZuOPwSatPfHRsCV3NGDYtmVT8eXihef5++ZwEvXkqnwR8sO0K0kIi48xQ1t2Afeut R9td7ywwr0EYkt2LbNAeDniIrAkKO3Y9DZ+apudm0poUAaHIXAXZ3bxePSX2tw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector2 header.b=TxIxfZiU; 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=quarantine) header.from=runbox.com Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtB68-0006TE-Qd; Wed, 18 Oct 2023 14:16:48 -0400 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 1qtB65-0006Rj-Qh for help-guix@gnu.org; Wed, 18 Oct 2023 14:16:46 -0400 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qtB62-000101-M1 for help-guix@gnu.org; Wed, 18 Oct 2023 14:16:45 -0400 Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo1.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qtB5x-000wWv-W8 for help-guix@gnu.org; Wed, 18 Oct 2023 20:16:38 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:To: References:From:Subject:MIME-Version:Date:Message-ID; bh=JqWS980c1yFZow/1RGoZ11TLG5DUA2ht+eSV7VPKDnc=; b=TxIxfZiU/nHcVK2MzliSQcsUkZ cnK653WgXgpg8fAXce82OQNQj1SEeOQIP0fBkCUwnjYY4GhHK09kjX4ctgmqjKXmJtzzLahX/Xg4V uAEms7pIj0mzjNwrXhqPDQKWtA93bXechJL+W3DSfSSOzTXvyQXDlJHpXRSvKv1ZiB1/galllO+z+ EsJhGX6ftXNdcdAd/vTFJzjSQcLDoP2hhxdkFGIeEfK0jBjAlHs2E3sFRBkem3dZ6hIo74yzFfAMz 01S97sZqu+OYVBeRP3zH542bLdSdGXK1yuhg/5vCUJEMB/m1YwNHUc6sDXz8PaXWDVe2oT+CM0QrU nt5Dz9NA==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qtB5x-0007OK-28 for help-guix@gnu.org; Wed, 18 Oct 2023 20:16:37 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (1174703)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1qtB5v-006Ktj-5I for help-guix@gnu.org; Wed, 18 Oct 2023 20:16:35 +0200 Message-ID: <70b51103-89af-4489-a1d2-e44ecba15062@runbox.com> Date: Wed, 18 Oct 2023 11:16:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Stuck installing guix package manager on Fedora with selinux Content-Language: en-US From: Alexis Simon References: <2f749c20-ede2-4f1c-b95a-e9bfc1869fad@runbox.com> <0e7b887d-2a0f-4675-8e0a-569b82d155ad@runbox.com> To: help-guix In-Reply-To: <0e7b887d-2a0f-4675-8e0a-569b82d155ad@runbox.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a0c:5a00:149::25; envelope-from=alexis.simon@runbox.com; helo=mailtransmit04.runbox.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=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-Spam-Score: -10.66 X-Migadu-Queue-Id: CA16A693C8 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -10.66 X-TUID: MOoCU7ANQcIu Ok I think I'm starting to get somewhere those are the changes that were needed in the selinux policy to be able to start installing a package ============================================== diff --git a/guix-daemon.cil b/guix-daemon.cil index 3994e62..c26ed1a 100644 --- a/guix-daemon.cil +++ b/guix-daemon.cil @@ -202,7 +202,7 @@ sys_admin))) (allow guix_daemon_t fs_t - (filesystem (unmount))) + (filesystem (unmount remount))) (allow guix_daemon_t devpts_t (dir (search))) @@ -308,6 +308,8 @@ (lnk_file (read))) (allow guix_daemon_t NetworkManager_var_run_t (dir (search))) + (allow guix_daemon_t init_var_run_t + (dir (search))) ;; Access to profiles (allow guix_daemon_t ============================================= I'll try it out more and update as I go along. Alexis On 18/10/2023 10:06, Alexis Simon wrote: > Hi, Thanks for the suggestion. > > I stumbled on this guix rpm but it seems also that selinux needs to be > disabled with that one. > I think the maintainer initially wanted to apply selinux policies but in > the end commented out all those parts. (There's also a hint in the > changelog that it doesn't work with selinux, see here [0]). > > As someone else suggested, yes I could set selinux to permissive but I > don't find that an acceptable solution. I don't want to disable a > security feature of my system. > > Also an update on my initial email: after a reboot, I'm back at square > one with the remount error. So the solution wasn't really one. > > Best regards, > Alexis > > [0] > https://copr-dist-git.fedorainfracloud.org/cgit/lantw44/guix/guix.git/tree/guix.spec?h=f38#n556 > > On 18/10/2023 06:40, Markku Korkeala wrote: >> Hi, >> >> I haven't tried the official guix installation, but I was >> able to get guix running on Fedora using rpm packages from copr: >> >> https://copr.fedorainfracloud.org/coprs/lantw44/guix/ >> >> If you can't find solution to the SELinux problem, maybe >> give those rpm packages a try. >> >> Best regards, >> Markku >> >> On Tue, Oct 17, 2023 at 09:42:58AM -0700, Alexis Simon wrote: >>> Hi, >>> >>> I'd like to try the guix package manager but am stuck installing it on >>> Fedora 38 with selinux. I should say I don't know anything about the >>> details >>> of either guix or selinux. >>> I know a few other persons that also wanted to try guix but gave up >>> due to >>> issues with selinux, so I think solving this issue could help in >>> adoption. >>> >>> I've used the installer script which worked well, then was initially >>> hit by >>> this error >>> `guix install: error: remounting /gnu/store writable: Permission denied` >>> >>> This was solved by doing >>> sudo semodule -i >>> /gnu/store/5kj8lyybjrdl7xd0fx9g9vzkz8sklqsy-guix-1.4.0/share/selinux/guix-daemon.cil >>> >>> sudo mount -o remount,rw /gnu/store >>> sudo restorecon -R /gnu /var/guix >>> sudo systemctl restart guix-daemon.service >>> >>> (note that the mount step was the missing part that was missing from all >>> guides I've seen on the web, and I found it in a guix commit). >>> >>> Now I have a different issue, guix-daemon doesn't seem to be able to >>> access >>> internet with errors of the type >>> `In procedure getaddrinfo: Temporary failure in name resolution` >>> (disabling selinux works in that case, but I want it enabled) >>> >>> This is what I get from setroubleshoot: >>> ``` >>> SELinux is preventing guix substitute from search access on the >>> directory >>> systemd. >>> *****  Plugin catchall (100. confidence) suggests   ***** >>> ********************* >>> If you believe that guix substitute should be allowed sea >>> rch access on the systemd directory by default. >>> Then you should report this as a bug. >>> You can generate a local policy module to allow this acce >>> ss. >>> Do >>> allow this access for now by executing: >>> # ausearch -c 'guix substitute' --raw | audit2allow -M my >>> -guixsubstitute >>> # semodule -X 300 -i my-guixsubstitute.pp >>> ``` >>> >>> Trying the suggested commands also errors in: >>> ``` >>> libsepol.hierarchy_add_type_callback: guix_daemon doesn't exist, >>> guix_daemon.guix_daemon_t is an orphan >>> libsepol.hierarchy_add_bounds: 1 errors found while adding hierarchies >>> ``` >>> >>> So I don't really know where to go from there, any help appreciated. >>> Thanks >>> Alexis >>> >