From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id CGEGCboQMGWnaQAA9RJhRA:P1 (envelope-from ) for ; Wed, 18 Oct 2023 19:07:06 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id CGEGCboQMGWnaQAA9RJhRA (envelope-from ) for ; Wed, 18 Oct 2023 19:07:06 +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 11AB343597 for ; Wed, 18 Oct 2023 19:07:06 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector2 header.b=faloeOVB; dmarc=pass (policy=quarantine) header.from=runbox.com; 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=1697648826; a=rsa-sha256; cv=none; b=CxcuoR5567CuwP/fAottXbTMFxiKhn1f/elW8QV+yR0xfKuNvsA49YWGzcXnzKr1RsQf8a HbLv6CWh5o050dazR/gVO/njOOyWgyuuDFIB3EFKgQSDm9z36IAkB8h77xF8xEYGex4uG+ DhMi8gooRDEqm/E4D26FejbHXgdJsr/G/8BKrxa4mft6+APLdY+nh0WEBLHNG9dq/Vq/us L0qelSiFMUTglNYjakE25G+nVpGhoevcwMggJoZJytNr7925RoZE0Z6KdLTD/gXQBKg/ad zvnBb5eWyS3kQwOaZsoJU0MJ+CWFHGMSd/lBM13VfvWaA0gqtjjan9h4wFQJgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=runbox.com header.s=selector2 header.b=faloeOVB; dmarc=pass (policy=quarantine) header.from=runbox.com; 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=1697648826; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=sJ2xIfTWZiHTIQ7nZT3Zy5UQWWTh2TZbddGbmOTuqOk=; b=Zpi5l89sO+jQTSR1/MSh3XRu/lNBSRTxqi8jZAGOV5deQyFipPLF4t9MTdmNf1LPHTj2V0 YuacATDGNuC6d6GLGg+R1AXa+p90KSQFUP6uoPioPNAPbdmLtYZRSjnHHgCMGYDlu8ZhV4 ffyXzraVcf9K48Ljf9DTgKQjU67IvKf0aM9mxT/u5+UbGA3Q5hEasL0i8o0ZYRIUsevzvW CSLFV0uWkVzSJQLXZEDxRkFW4/+Q2CaxPyieW4qqbuJPbGD5935GvWH0mwuPrv2FfS/xfW 6dbCeFq+Y/DSyx4dKs/tGBiBCgOCiUkFszU6lusVFil6ja8/wDlzpN2B96+PjA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtA0I-00085O-4M; Wed, 18 Oct 2023 13:06:42 -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 1qtA0H-00085G-C0 for help-guix@gnu.org; Wed, 18 Oct 2023 13:06:41 -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 1qtA0E-0004VS-BM for help-guix@gnu.org; Wed, 18 Oct 2023 13:06:41 -0400 Received: from mailtransmit02.runbox ([10.9.9.162] 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 1qtA07-000nwY-Rd; Wed, 18 Oct 2023 19:06:31 +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:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID; bh=sJ2xIfTWZiHTIQ7nZT3Zy5UQWWTh2TZbddGbmOTuqOk=; b=faloeOVBWHfNznDHzXnjuFyjRT 90b5qTBI7gID5Vexca+pEJonlOwMelUBAMo/qyKS5qOZVf7HGVhN4hxRp/FOnEYN7j2wOBVzTFg0h jnmFM7yR0NQkPDmqBTfw0cALThlzbbc2hZN6f786ZwJMGWgyigBvRyk+FbaU/TTEMNxalPty0nPUt fq/Db9ezbKt3lFBQ2N5jgIg8p7+ygKs0o2+ehuopIRCv/7nSnjzl6Zikog78Xayj4DfG9dmcx0+CQ iephr/+3Iv+TBnIBVoLcnSLPyK9M0LdYlEWVTzTXTsIIHZdXp+gwWLBDBNVXOQQ036HoHZ6z8g7F2 K43EnW9A==; Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qtA06-0008FZ-0t; Wed, 18 Oct 2023 19:06:31 +0200 Received: by submission03.runbox with esmtpsa [Authenticated ID (1174703)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1qt9zm-006tTd-3T; Wed, 18 Oct 2023 19:06:10 +0200 Message-ID: <0e7b887d-2a0f-4675-8e0a-569b82d155ad@runbox.com> Date: Wed, 18 Oct 2023 10:06:07 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Stuck installing guix package manager on Fedora with selinux Content-Language: en-US To: Markku Korkeala Cc: help-guix@gnu.org References: <2f749c20-ede2-4f1c-b95a-e9bfc1869fad@runbox.com> From: Alexis Simon In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx1.migadu.com X-Migadu-Spam-Score: -10.63 X-Spam-Score: -10.63 X-Migadu-Queue-Id: 11AB343597 X-TUID: tFL+bX8Dq12p 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 >>