From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 67CE8138334 for ; Tue, 11 Sep 2018 09:06:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 43CC3E0DC3; Tue, 11 Sep 2018 09:06:49 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 11ECCE0DBE for ; Tue, 11 Sep 2018 09:06:49 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8202E335D1C for ; Tue, 11 Sep 2018 09:06:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A564B3D8 for ; Tue, 11 Sep 2018 09:06:44 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1536462466.084110a7f93df028ea36a61c3f10d6747d5d2cd2.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/system/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/system/fstools.fc X-VCS-Directories: policy/modules/system/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 084110a7f93df028ea36a61c3f10d6747d5d2cd2 X-VCS-Branch: master Date: Tue, 11 Sep 2018 09:06:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 0d60a1bb-cdaa-4481-8967-5abd9fe548c8 X-Archives-Hash: 0ab12260423a1435f5ed699f9b4f14ba commit: 084110a7f93df028ea36a61c3f10d6747d5d2cd2 Author: Nicolas Iooss m4x org> AuthorDate: Fri Aug 3 19:27:51 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Sep 9 03:07:46 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=084110a7 fstools: label e2mmpstatus as fsadm_exec_t e2fsprogs 1.44.3 installs e2mmpstatus as a hard link to dumpe2fs. This makes "restorecon -Rv /usr/bin" relabels this file with conflicting contexts: Relabeled /usr/bin/e2mmpstatus from system_u:object_r:fsadm_exec_t to system_u:object_r:bin_t Relabeled /usr/bin/dumpe2fs from system_u:object_r:bin_t to system_u:object_r:fsadm_exec_t Fix this by labelling e2mmpstatus like dumpe2fs. Signed-off-by: Nicolas Iooss m4x.org> policy/modules/system/fstools.fc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/system/fstools.fc b/policy/modules/system/fstools.fc index 494d021e..2f4d6cd8 100644 --- a/policy/modules/system/fstools.fc +++ b/policy/modules/system/fstools.fc @@ -11,6 +11,7 @@ /usr/bin/e2fsck -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/bin/e4fsck -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/bin/e2label -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/bin/e2mmpstatus -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/bin/efibootmgr -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/bin/fatsort -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/bin/fdisk -- gen_context(system_u:object_r:fsadm_exec_t,s0) @@ -67,6 +68,7 @@ /usr/sbin/e2fsck -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/sbin/e4fsck -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/sbin/e2label -- gen_context(system_u:object_r:fsadm_exec_t,s0) +/usr/sbin/e2mmpstatus -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/sbin/efibootmgr -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/sbin/fatsort -- gen_context(system_u:object_r:fsadm_exec_t,s0) /usr/sbin/fdisk -- gen_context(system_u:object_r:fsadm_exec_t,s0)