SELinux-Refpolicy Archive on
 help / color / Atom feed
From: Anthony PERARD <>
To: <>
Cc: Anthony PERARD <>
Subject: [PATCH] xen: Allow xenstored to map /proc/xen/xsd_kva
Date: Tue, 14 Jul 2020 14:20:07 +0100
Message-ID: <> (raw)

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 <>
 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)
+allow xenstored_t xenfs_t:file map;
Anthony PERARD

             reply index

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-14 13:20 Anthony PERARD [this message]
2020-07-16 13:37 ` 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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

SELinux-Refpolicy Archive on

Archives are clonable:
	git clone --mirror selinux-refpolicy/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 selinux-refpolicy selinux-refpolicy/ \
	public-inbox-index selinux-refpolicy

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone