From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A55A1C433E5 for ; Mon, 27 Jul 2020 11:28:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3A249206E7 for ; Mon, 27 Jul 2020 11:28:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=bigon.be header.i=@bigon.be header.b="UlH1kNE1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbgG0L2Q (ORCPT ); Mon, 27 Jul 2020 07:28:16 -0400 Received: from ithil.bigon.be ([163.172.57.153]:57550 "EHLO ithil.bigon.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbgG0L2Q (ORCPT ); Mon, 27 Jul 2020 07:28:16 -0400 Received: from localhost (localhost [IPv6:::1]) by ithil.bigon.be (Postfix) with ESMTP id 6025D1FDE2 for ; Mon, 27 Jul 2020 13:28:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bigon.be; h= content-transfer-encoding:mime-version:x-mailer:message-id:date :date:subject:subject:from:from:received:received:received; s= key1; t=1595849294; x=1597663695; bh=OE0S8DFCSQv8FNzBGj6htzYuJri iRjYPaFRKcbkj1lo=; b=UlH1kNE1D9fYpojjXzLk/ZXiKTxAYa3iw7eeCXMuXgm HCIcVot0PQ5gaE4MfkkkFUIZurF3ycALKAmk7u6n/IrAGma/KDUifKBHozNrMl5c HkpXp49CPLtlpsOOS727yB9npcO6ZNKL2UMCpVuldudQmzU1h9PVpB34Z4Hl/8P0 = Received: from ithil.bigon.be ([IPv6:::1]) by localhost (ithil.bigon.be [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id ZZN35N9Uqbhu for ; Mon, 27 Jul 2020 13:28:14 +0200 (CEST) Received: from edoras.bigon.be (unknown [IPv6:2a02:a03f:65b8:4300:746b:cff:67dc:4fbd]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bigon@bigon.be) by ithil.bigon.be (Postfix) with ESMTPSA for ; Mon, 27 Jul 2020 13:28:14 +0200 (CEST) Received: from bigon (uid 1000) (envelope-from bigon@bigon.be) id 1ff95 by edoras.bigon.be (DragonFly Mail Agent v0.12); Mon, 27 Jul 2020 13:28:13 +0200 From: Laurent Bigonville To: selinux-refpolicy@vger.kernel.org Subject: [PATCH] Label /usr/libexec/packagekitd as apt_exec_t on debian Date: Mon, 27 Jul 2020 13:28:13 +0200 Message-Id: <20200727112813.343021-1-bigon@debian.org> X-Mailer: git-send-email 2.28.0.rc2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org From: Laurent Bigonville The daemon has now moved from /usr/lib/packagekit/packagekitd to /usr/libexec/packagekitd Signed-off-by: Laurent Bigonville --- policy/modules/admin/apt.fc | 1 + policy/modules/admin/rpm.fc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/policy/modules/admin/apt.fc b/policy/modules/admin/apt.fc index a5dec71c..8a539f06 100644 --- a/policy/modules/admin/apt.fc +++ b/policy/modules/admin/apt.fc @@ -9,6 +9,7 @@ ifndef(`distro_redhat',` /usr/sbin/synaptic -- gen_context(system_u:object_r:apt_exec_t,s0) /usr/lib/packagekit/packagekitd -- gen_context(system_u:object_r:apt_exec_t,s0) +/usr/libexec/packagekitd -- gen_context(system_u:object_r:apt_exec_t,s0) /var/cache/PackageKit(/.*)? gen_context(system_u:object_r:apt_var_cache_t,s0) /var/lib/PackageKit(/.*)? gen_context(system_u:object_r:apt_var_lib_t,s0) ') diff --git a/policy/modules/admin/rpm.fc b/policy/modules/admin/rpm.fc index 6194a483..aaf530c2 100644 --- a/policy/modules/admin/rpm.fc +++ b/policy/modules/admin/rpm.fc @@ -23,7 +23,6 @@ /usr/lib/systemd/system/[^/]*dnf-makecache.* -- gen_context(system_u:object_r:rpm_unit_t,s0) /usr/lib/systemd/system/[^/]*yum-makecache.* -- gen_context(system_u:object_r:rpm_unit_t,s0) -/usr/libexec/packagekitd -- gen_context(system_u:object_r:rpm_exec_t,s0) /usr/libexec/yumDBUSBackend\.py -- gen_context(system_u:object_r:rpm_exec_t,s0) /usr/sbin/bcfg2 -- gen_context(system_u:object_r:rpm_exec_t,s0) @@ -39,6 +38,7 @@ ifdef(`distro_redhat',` /usr/sbin/synaptic -- gen_context(system_u:object_r:rpm_exec_t,s0) +/usr/libexec/packagekitd -- gen_context(system_u:object_r:rpm_exec_t,s0) /var/cache/PackageKit(/.*)? gen_context(system_u:object_r:rpm_var_cache_t,s0) /var/lib/PackageKit(/.*)? gen_context(system_u:object_r:rpm_var_lib_t,s0) ') -- 2.28.0.rc2