From: jason@perfinion.com (Jason Zaman) Date: Mon, 23 Jun 2014 22:46:53 +0400 Subject: [refpolicy] [PATCH] File contexts for zram Message-ID: <1403549214-26532-1-git-send-email-jason@perfinion.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com zram is a compressed block device in ram Signed-off-by: Jason Zaman --- policy/modules/kernel/storage.fc | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/kernel/storage.fc b/policy/modules/kernel/storage.fc index 4dd865b..73599f3 100644 --- a/policy/modules/kernel/storage.fc +++ b/policy/modules/kernel/storage.fc @@ -59,6 +59,7 @@ ifdef(`distro_redhat', ` /dev/zd.* -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) /dev/zfs -c gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) /dev/zpios -c gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) +/dev/zram[0-9]+ -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) /dev/ataraid/.* -b gen_context(system_u:object_r:fixed_disk_device_t,mls_systemhigh) -- 1.8.5.5