From nobody Fri Apr 26 00:17:05 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1515833686096553.5813098357313; Sat, 13 Jan 2018 00:54:46 -0800 (PST) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0727D642; Sat, 13 Jan 2018 08:54:39 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2E6A9183F0; Sat, 13 Jan 2018 08:54:37 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 099CA4EBDB; Sat, 13 Jan 2018 08:54:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w0D8sX93019602 for ; Sat, 13 Jan 2018 03:54:33 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6B51775A0A; Sat, 13 Jan 2018 08:54:33 +0000 (UTC) Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 65D2375A08 for ; Sat, 13 Jan 2018 08:54:31 +0000 (UTC) Received: from boum.org (boum.org [204.13.164.192]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 65ED2C00F1D8 for ; Sat, 13 Jan 2018 08:54:29 +0000 (UTC) Received: from censure.boum.org (censure.boum.org [192.168.122.20]) by boum.org (Postfix) with ESMTP id 961CB778 for ; Sat, 13 Jan 2018 09:54:26 +0100 (CET) Received: from boum.org ([192.168.122.29]) by censure.boum.org (censure.boum.org [192.168.122.20]) (amavisd-new, port 10024) with ESMTP id qTRekQswF3tH for ; Sat, 13 Jan 2018 09:54:26 +0100 (CET) Received: from boum.org (boum.org [127.0.0.1]) with ESMTPSA id E0E7576E Received: by localhost (Postfix, from userid 1002) id 3B43A723BBB; Sat, 13 Jan 2018 09:54:19 +0100 (CET) From: intrigeri+libvirt@boum.org To: libvir-list@redhat.com Date: Sat, 13 Jan 2018 08:54:12 +0000 Message-Id: <20180113085412.16332-1-intrigeri+libvirt@boum.org> X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 207 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Sat, 13 Jan 2018 08:54:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Sat, 13 Jan 2018 08:54:29 +0000 (UTC) for IP:'204.13.164.192' DOMAIN:'boum.org' HELO:'boum.org' FROM:'intrigeri@boum.org' RCPT:'' X-RedHat-Spam-Score: -0.019 (RCVD_IN_DNSWL_NONE, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY) 204.13.164.192 boum.org 204.13.164.192 boum.org X-Scanned-By: MIMEDefang 2.78 on 10.5.110.31 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH] AppArmor: Allow libvirtd to kill unconfined processes X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Sat, 13 Jan 2018 08:54:44 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" From: intrigeri On startup libvirtd runs a number of QEMU processes unconfined such as: /usr/bin/qemu-system-x86_64 -S -no-user-config -nodefaults -nographic -ma= chine none,accel=3Dkvm:tcg -qmp unix:/var/lib/libvirt/qemu/capabilities.mon= itor.sock,server,nowait -pidfile /var/lib/libvirt/qemu/capabilities.pidfile= -daemonize libvirtd needs to be allowed to kill these processes, otherwise they remain running. --- examples/apparmor/usr.sbin.libvirtd | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/apparmor/usr.sbin.libvirtd b/examples/apparmor/usr.sb= in.libvirtd index a1083b0410..0ddec3f6e2 100644 --- a/examples/apparmor/usr.sbin.libvirtd +++ b/examples/apparmor/usr.sbin.libvirtd @@ -63,6 +63,7 @@ =20 signal (send) peer=3D/usr/sbin/dnsmasq, signal (read, send) peer=3Dlibvirt-*, + signal (send) set=3D("kill") peer=3Dunconfined, =20 # Very lenient profile for libvirtd since we want to first focus on conf= ining # the guests. Guests will have a very restricted profile. --=20 2.15.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list