From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: SELinux log Date: Mon, 10 Jun 2019 10:12:35 +0200 Message-ID: <87ef41dfkc.fsf@elephly.net> References: <87sgsocqx5.fsf@elephly.net> <87k1dyk33n.fsf@elephly.net> <87ef4586oh.fsf@elephly.net> <87a7es8spi.fsf@elephly.net> <87r284cer2.fsf@elephly.net> <87muisc8x8.fsf@elephly.net> 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]:53287) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1haFQ5-00021w-PI for guix-devel@gnu.org; Mon, 10 Jun 2019 04:12:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1haFQ4-0008Qn-MG for guix-devel@gnu.org; Mon, 10 Jun 2019 04:12:45 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21344) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1haFQ4-0008Ou-A2 for guix-devel@gnu.org; Mon, 10 Jun 2019 04:12:44 -0400 In-reply-to: List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Laura Lazzati Cc: Guix-devel Hi Laura, > My audit log showed: > > type=3DAVC msg=3Daudit(1560131803.485:381): avc: denied { search } for > pid=3D8177 comm=3D"bash" name=3D"guix" dev=3D"dm-0" ino=3D679365 > scontext=3Dunconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 > tcontext=3Dunconfined_u:object_r:guix_daemon.guix_daemon_conf_t:s0 tclass= =3Ddir > permissive=3D0 This looks better. This says that =E2=80=9Cguix=E2=80=9D is not labeled correctly. The messag= e isn=E2=80=99t very clear, but it looks like bash spawned =E2=80=9Cguix=E2=80=9D, which has no = particular SELinux context (unconfined). When it tries to access /var/guix (which *does* have the correct label) it is denied access, because only the guix-daemon type has been granted access to files of type =E2=80=9Cguix_daemon_conf_t=E2=80=9D. So we need to figure out what file that =E2=80=9Cguix=E2=80=9D command corr= esponds to, so that we can add a rule to the policy to apply the correct label. -- Ricardo