From: nicolas.iooss@m4x.org (Nicolas Iooss)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/1] fstools: label e2mmpstatus as fsadm_exec_t
Date: Fri, 3 Aug 2018 21:27:51 +0200 [thread overview]
Message-ID: <20180803192751.30382-1-nicolas.iooss@m4x.org> (raw)
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 <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 d4219a18ff17..8fbd5ce440d6 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)
--
2.18.0
next reply other threads:[~2018-08-03 19:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-03 19:27 Nicolas Iooss [this message]
2018-08-04 14:51 ` [refpolicy] [PATCH 1/1] fstools: label e2mmpstatus as fsadm_exec_t Chris PeBenito
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180803192751.30382-1-nicolas.iooss@m4x.org \
--to=nicolas.iooss@m4x.org \
--cc=refpolicy@oss.tresys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).