From nobody Thu May 2 23:41:06 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1600814112; cv=none; d=zohomail.com; s=zohoarc; b=oFQf7plG355PpaIRo5PFjlO21MNTJCZe5Lhd+z/Q3341L+muF/kkjn8Kvxn9sqCR+De0hL2/R5d+DNxc6nHGyIjCNuxx8Y2z4sDOSui3ttDOrwONLFdvRm0O9MIjVUxsUewQIYB20bLXUAACXjEo9K6O3Uu22ReQj6pSSwcnJAg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1600814112; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=itBe4eNKJZ3wYIVeItFKGD9W2bltQ6+ade49yeAvaLw=; b=Gi8CYBW1Tf+JsrM4BWbfrzMqoFTG5bxAEfuidkNFI2M+XZfVWsYjd365XoRKOoc1RJh2xdN+d0cfHCEu7MHnIgvwXR55PiqzXGUVOSa2jLARv6p0aEatxnq6HSIwHVE1lbH46SJOshUjvP3e82DfiYI5SjjpeiV16eHpd5wG+EI= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1600814112828832.5885840766773; Tue, 22 Sep 2020 15:35:12 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-521-j6SkkVmrPNWfOMpIwOxSFQ-1; Tue, 22 Sep 2020 18:35:09 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id EE2CB186DD28; Tue, 22 Sep 2020 22:35:02 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6ABD578810; Tue, 22 Sep 2020 22:35:00 +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 5B2961826D2F; Tue, 22 Sep 2020 22:34:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08MMYtGY030037 for ; Tue, 22 Sep 2020 18:34:55 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3EF142022790; Tue, 22 Sep 2020 22:34:55 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 38F942022788 for ; Tue, 22 Sep 2020 22:34:53 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 189CB8007DF for ; Tue, 22 Sep 2020 22:34:53 +0000 (UTC) Received: from de-smtp-delivery-102.mimecast.com (de-smtp-delivery-102.mimecast.com [51.163.158.102]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-432-souq5z3vPJGPKhr4LezJoA-1; Tue, 22 Sep 2020 18:34:50 -0400 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04lp2050.outbound.protection.outlook.com [104.47.13.50]) (Using TLS) by relay.mimecast.com with ESMTP id de-mta-29-CGDkg52rOIiFiT0LQwiq8w-1; Wed, 23 Sep 2020 00:34:48 +0200 Received: from VI1PR0401MB2429.eurprd04.prod.outlook.com (2603:10a6:800:2c::13) by VI1PR04MB4288.eurprd04.prod.outlook.com (2603:10a6:803:3f::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.13; Tue, 22 Sep 2020 22:34:46 +0000 Received: from VI1PR0401MB2429.eurprd04.prod.outlook.com ([fe80::810a:9a65:c33f:2f15]) by VI1PR0401MB2429.eurprd04.prod.outlook.com ([fe80::810a:9a65:c33f:2f15%7]) with mapi id 15.20.3391.027; Tue, 22 Sep 2020 22:34:46 +0000 Received: from linux-tbji.devlab.prv.suse.com (75.169.74.57) by AM4PR0101CA0076.eurprd01.prod.exchangelabs.com (2603:10a6:200:41::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20 via Frontend Transport; Tue, 22 Sep 2020 22:34:44 +0000 X-MC-Unique: j6SkkVmrPNWfOMpIwOxSFQ-1 X-MC-Unique: souq5z3vPJGPKhr4LezJoA-1 X-MC-Unique: CGDkg52rOIiFiT0LQwiq8w-1 From: Jim Fehlig To: libvir-list@redhat.com Subject: [PATCH] apparmor: Allow /usr/libexec for libxl-save-helper and pygrub Date: Tue, 22 Sep 2020 16:34:22 -0600 Message-ID: <20200922223422.28254-1-jfehlig@suse.com> X-ClientProxiedBy: AM4PR0101CA0076.eurprd01.prod.exchangelabs.com (2603:10a6:200:41::44) To VI1PR0401MB2429.eurprd04.prod.outlook.com (2603:10a6:800:2c::13) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-Originating-IP: [75.169.74.57] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6ee2ff59-6b08-4dbb-d9a2-08d85f47b506 X-MS-TrafficTypeDiagnostic: VI1PR04MB4288: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 8WDI1Foq+FYkNABmqRCiHeUIQ6gO5a+dO+DPujXekeRFA49UtsD2k0ZsFz2f66ZzffwhQtMeUhoiqdcHfRtJHN/ZKXZAAgNYYRjsESLCG/GjJNdoVxTB2F8JQUmIPhM7QrpDZiKzaII93FpzwXcLN/rO8zwG19HsMIil37dLK9LjlQTsB/xCtP8vDIezlf8x8fN5gJyUZPHSt2+COhz/fy84qFa9WdMAeiYZUSY0jS4t8A45pUnlEtiVGojoBmSZfL3OHr9Xwl6ljwO7i2fakl2NumHvoevpPS2Cx9Ip8aZjyn2dH8uE22oxKq7/G+pXEkcyCU2VMCMcHmdfZCHoBFnGjF3hXGbViXVYnqPJUzMUtCPhxUeMOYbthlFY0r59 X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR0401MB2429.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(136003)(376002)(39860400002)(396003)(346002)(16526019)(186003)(36756003)(316002)(956004)(2616005)(26005)(86362001)(1076003)(6916009)(6666004)(7696005)(4326008)(8936002)(66476007)(478600001)(83380400001)(107886003)(2906002)(66556008)(52116002)(8676002)(5660300002)(6486002)(66946007); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: R0HPH+ZlMLEn1IRMIrZnVPEQKEMVvGd/iBJeG32OXB1QB0BSWM3f7QA2St2IFPghpB8KOSJHb1SAGQ/MWa5q6mtuHdoOhOj5RwnlIAAVRMiXoaf1C7vsOVS8R/HL2+nPJtcsFRVcYY1BxB5u3lKVWgArGYW6UHeEPy8mgCwmqOBOhoRbc2l/9OIXIpla5auG5i3kAFTfPiKXSXL/1EmlskXCWPpwASjmpRld183h1kZYVZKPpcbd6A6qoWSokl8gxWo8uYI5IMNhjv4GXgFnZEcqe9tfFkSpiVxVc0/Z4iEcCL9l56DuWeEAwlSb+OGigfqunQxbpqimxWaArGNKTbbKUMGwJ3Jp6/yyeZYK5ANU/ote6Xz6mEl8divAIo8tB7a2JcGk7+Yr2W/C0ndNxa9Psd7V7eQTFJqT3FM36L5Q77LRSAdRKeNDjZWm5YzKnX1glqxMaCR/Mki65wecTqspTYC+WFVoBUrzDFFXW9tN2t5RZVyZDMCcRtozdCOHu5swZxtOAtOjPrKmUUxpNh4c0Zz9aK3ddO2yvibA+8U0qnyrFgB0fzcIwhLO8Pf7T7RfUuRMeB+TQ//rhORwr0CgkNnDnLv5G9BaPoYJUO5rvX5JZkNYdl6I9LUsbL1LXnuc05fyC9ebJOyyrrReGg== X-OriginatorOrg: suse.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6ee2ff59-6b08-4dbb-d9a2-08d85f47b506 X-MS-Exchange-CrossTenant-AuthSource: VI1PR0401MB2429.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2020 22:34:46.1455 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f7a17af6-1c5c-4a36-aa8b-f5be247aa4ba X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5YJpUeSoaICM+XUFTV+xawlXgBiuTAz25pcZ5jl43wq2H/R6RTJDjR5tv1aToqsYH16M8umL7DEAyGmses37Mw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4288 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false; X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-MIME-Autoconverted: from quoted-printable to 8bit by lists01.pubmisc.prod.ext.phx2.redhat.com id 08MMYtGY030037 X-loop: libvir-list@redhat.com 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Like other distros, openSUSE Tumbleweed recently changed libexecdir from /usr/lib to /usr/libexec. Add it as an allowed path for libxl-save-helper and pygrub. Signed-off-by: Jim Fehlig Reviewed-by: Christian Ehrhardt Reviewed-by: Neal Gompa --- I considered including /usr/lib64, but I don't think any distros are installing xen libexecdir targets to /usr/lib64. Happy to include it if I'm wrong :-). src/security/apparmor/usr.sbin.libvirtd.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/security/apparmor/usr.sbin.libvirtd.in b/src/security/appa= rmor/usr.sbin.libvirtd.in index f2030764cd..bf4563e1e8 100644 --- a/src/security/apparmor/usr.sbin.libvirtd.in +++ b/src/security/apparmor/usr.sbin.libvirtd.in @@ -86,8 +86,8 @@ profile libvirtd @sbindir@/libvirtd flags=3D(attach_disco= nnected) { /{usr/,}lib/udev/scsi_id PUx, /usr/{lib,lib64}/xen-common/bin/xen-toolstack PUx, /usr/{lib,lib64}/xen/bin/* Ux, - /usr/lib/xen-*/bin/libxl-save-helper PUx, - /usr/lib/xen-*/bin/pygrub PUx, + /usr/{lib,libexec}/xen-*/bin/libxl-save-helper PUx, + /usr/{lib,libexec}/xen-*/bin/pygrub PUx, /usr/{lib,lib64,lib/qemu,libexec}/vhost-user-gpu PUx, /usr/{lib,lib64,lib/qemu,libexec}/virtiofsd PUx, =20 --=20 2.28.0