From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#39172: SElinux guix-daemon.cil file Date: Mon, 20 Jan 2020 10:13:50 +0100 Message-ID: <87h80qij75.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54762) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1itT9G-0006YO-9H for bug-guix@gnu.org; Mon, 20 Jan 2020 04:15:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1itT9C-0003r7-6H for bug-guix@gnu.org; Mon, 20 Jan 2020 04:15:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38377) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1itT9C-0003qy-2y for bug-guix@gnu.org; Mon, 20 Jan 2020 04:15:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1itT9B-000751-Tw for bug-guix@gnu.org; Mon, 20 Jan 2020 04:15:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Matt Wette's message of "Sat, 18 Jan 2020 07:40:18 -0800") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Matt Wette , Ricardo Wurmus Cc: 39172@debbugs.gnu.org Hi Matt, Matt Wette skribis: > I'm trying to get guix-1.0.1 running on Fedora-30 with its default > SElinux set up. > I found (hint from > https://lists.gnu.org/archive/html/guix-devel/2019-05/msg00109.html) > that the guix-daemon.cil file seems to be missing a few items. Without > this patch > =C2=A0=C2=A0=C2=A0 # restorecon -R /gnu/store > fails. OK, thanks for finding it out! > --- guix-daemon.cil.orig=C2=A0=C2=A0=C2=A0 2020-01-18 07:08:12.905986299 = -0800 > +++ guix-daemon.cil=C2=A0=C2=A0=C2=A0 2020-01-18 07:09:49.765737261 -0800 > @@ -34,14 +34,19 @@ > =C2=A0=C2=A0 (roletype object_r guix_daemon_t) > =C2=A0=C2=A0 (type guix_daemon_conf_t) > =C2=A0=C2=A0 (roletype object_r guix_daemon_conf_t) > +=C2=A0 (typeattributeset file_type guix_daemon_conf_t) > =C2=A0=C2=A0 (type guix_daemon_exec_t) > =C2=A0=C2=A0 (roletype object_r guix_daemon_exec_t) > +=C2=A0 (typeattributeset file_type guix_daemon_exec_t) > =C2=A0=C2=A0 (type guix_daemon_socket_t) > =C2=A0=C2=A0 (roletype object_r guix_daemon_socket_t) > +=C2=A0 (typeattributeset file_type guix_daemon_socket_t) > =C2=A0=C2=A0 (type guix_store_content_t) > =C2=A0=C2=A0 (roletype object_r guix_store_content_t) > +=C2=A0 (typeattributeset file_type guix_store_content_t) > =C2=A0=C2=A0 (type guix_profiles_t) > =C2=A0=C2=A0 (roletype object_r guix_profiles_t) > +=C2=A0 (typeattributeset file_type guix_profiles_t) > > =C2=A0=C2=A0 ;; These types are domains, thereby allowing process rules > =C2=A0=C2=A0 (typeattributeset domain (guix_daemon_t guix_daemon_exec_t)) Ricardo, WDYT? I know nothing about this config file so I=E2=80=99d rather= have your approval before pushing. Ludo=E2=80=99.