selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: pebenito@ieee.org (Chris PeBenito)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/1] fstools: label e2mmpstatus as fsadm_exec_t
Date: Sat, 4 Aug 2018 10:51:00 -0400	[thread overview]
Message-ID: <c49e385d-9ecb-2e2d-5a57-336a459a4ac3@ieee.org> (raw)
In-Reply-To: <20180803192751.30382-1-nicolas.iooss@m4x.org>

On 08/03/2018 03:27 PM, Nicolas Iooss via refpolicy wrote:
> 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)

Merged.

-- 
Chris PeBenito

      reply	other threads:[~2018-08-04 14:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-03 19:27 [refpolicy] [PATCH 1/1] fstools: label e2mmpstatus as fsadm_exec_t Nicolas Iooss
2018-08-04 14:51 ` Chris PeBenito [this message]

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=c49e385d-9ecb-2e2d-5a57-336a459a4ac3@ieee.org \
    --to=pebenito@ieee.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).