From 9c9bbde91da9f0a90ae7e70d71638ec9c2d207da Mon Sep 17 00:00:00 2001
From: guoxiaoqi <guoxiaoqi2@huawei.com>
Date: Thu, 4 Jun 2020 20:25:12 +0800
Subject: [PATCH] add map to zerp device at dev_rw_zero interface

Signed-off-by: guoxiaoqi <guoxiaoqi2@huawei.com>
---
 policy/modules/kernel/devices.if | 1 +
 1 file changed, 1 insertion(+)

diff --git a/policy/modules/kernel/devices.if b/policy/modules/kernel/devices.if
index c3659c7..65c21e1 100644
--- a/policy/modules/kernel/devices.if
+++ b/policy/modules/kernel/devices.if
@@ -6094,6 +6094,7 @@ interface(`dev_rw_zero',`
 	')
 
 	rw_chr_files_pattern($1, device_t, zero_device_t)
+	allow $1 zero_device_t:chr_file map;
 ')
 
 ########################################
-- 
1.8.3.1

