selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Chris PeBenito <pebenito@ieee.org>
To: Anthony PERARD <anthony.perard@citrix.com>,
	selinux-refpolicy@vger.kernel.org
Subject: Re: [PATCH] xen: Allow xenstored to map /proc/xen/xsd_kva
Date: Thu, 16 Jul 2020 09:37:11 -0400	[thread overview]
Message-ID: <a766c125-62da-1566-a084-c6af072d7c20@ieee.org> (raw)
In-Reply-To: <20200714132007.821541-1-anthony.perard@citrix.com>

On 7/14/20 9:20 AM, Anthony PERARD wrote:
> xenstored is using mmap() on /proc/xen/xsd_kva, and when the SELinux
> boolean "domain_can_mmap_files" in CentOS is set to false the mmap()
> call fails.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
> ---
>   policy/modules/system/xen.te | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/policy/modules/system/xen.te b/policy/modules/system/xen.te
> index 1b91b5cbc82a..b3df1f627804 100644
> --- a/policy/modules/system/xen.te
> +++ b/policy/modules/system/xen.te
> @@ -459,6 +459,7 @@ files_read_usr_files(xenstored_t)
>   
>   fs_search_xenfs(xenstored_t)
>   fs_manage_xenfs_files(xenstored_t)
> +allow xenstored_t xenfs_t:file map;
>   
>   term_use_generic_ptys(xenstored_t)

You need to add an interface in filesystem.if that allows the caller to map 
xenfs files and call it from xen.te.

-- 
Chris PeBenito

      reply	other threads:[~2020-07-16 13:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-14 13:20 [PATCH] xen: Allow xenstored to map /proc/xen/xsd_kva Anthony PERARD
2020-07-16 13:37 ` 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=a766c125-62da-1566-a084-c6af072d7c20@ieee.org \
    --to=pebenito@ieee.org \
    --cc=anthony.perard@citrix.com \
    --cc=selinux-refpolicy@vger.kernel.org \
    /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).