[PATCH] xen: Allow xenstored to map /proc/xen/xsd_kva

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 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)
 
-- 
Anthony PERARD




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux