Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp963553ybg; Mon, 27 Jul 2020 04:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxDL/VXTqU2RP+CQ+w4En8HN543adEWQyjxiINsY964MMmlEImAAZX2cU2MQRu+mt75L6wc X-Received: by 2002:a17:906:4341:: with SMTP id z1mr20173207ejm.392.1595849378356; Mon, 27 Jul 2020 04:29:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595849378; cv=none; d=google.com; s=arc-20160816; b=ATFiXXUA9NxhmPY26qcSWsJPMSJOGgNYGXATjJSfQ6IhJnfuML0m5oGqE6TG+itjU+ nIFbvzlIBO/dO1TYPXtbWkCwB7gDLrGfqhK0DpxIC55GSEOOm29jiuzlgCtRPxbs/24p TasDEkS/wXAvZyccsdWAVg+GSRQBn79bOa3NO3CBe3CIldxYiCTFA+PZ1qoP8EU1TOQC Zd0+OnFFkH5dmpv4bcCKB5dlRtIgFlgHEntw/saCxeZ8vgrO2m/HVYrPHyCdXlwvmMR5 MiS7Iz+pz0sBGNjCkHUDZ8fkjb/Ve1lueP716HdQ8T0f4nq+lfKJPtrf1G0JNfuos729 2FvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=hB5ir2SYuf+esutWczRSL7O2NX+/fVETo6CPYHT36nk=; b=jrzfSwnHC921UguyAXkXOBZC+Y+54mETsR5jXoUfCyRJAe77ykUsC6cqmk/2et829n BGmzOtA8zFRDiUTz1M/rRlYlsDnOov9URTWcq5azDtR29r/MuFol4Hyv4cXSCvh1cRbr mKDWxJ71/tdYK4XsQkReHLvyD/h7cLSBKEnOHklbWGYUSjQNJkh6PSjWf7EQCGJNgn15 uNoxol828Hpa/E5xzSngxgmJqNHnTJQTyyh3otnToBjws3yfay5naLu1zHW2FFfXtB9U wZJ4EeafQtZW/tUdQsikC8ckzKZa6jA0fje6eo6QgE/7M6JtIQWiXqQwbkXDYZ80EFdC J7jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bigon.be header.s=key1 header.b=UlH1kNE1; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cb18si5570127ejb.534.2020.07.27.04.29.32; Mon, 27 Jul 2020 04:29:38 -0700 (PDT) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@bigon.be header.s=key1 header.b=UlH1kNE1; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726808AbgG0L2Q (ORCPT + 15 others); 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