From 9fc0d40eff46d1319f282df68376c335c3115c36 Mon Sep 17 00:00:00 2001
From: Stephen Smalley <sds@tycho.nsa.gov>
Date: Wed, 26 Mar 2014 15:37:54 -0400
Subject: [PATCH] Label /dev/uio[0-9]* with its own type.

Change-Id: Ibeeec6637022ee8bc9868e102b3d55e3b0d4762c
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
---
 device.te     | 1 +
 file_contexts | 1 +
 2 files changed, 2 insertions(+)

diff --git a/device.te b/device.te
index 760b5e456..e9b7e515a 100644
--- a/device.te
+++ b/device.te
@@ -45,6 +45,7 @@ type gps_device, dev_type;
 type qtaguid_device, dev_type;
 type watchdog_device, dev_type;
 type uhid_device, dev_type;
+type uio_device, dev_type;
 type tun_device, dev_type, mlstrustedobject;
 type usbaccessory_device, dev_type;
 type usb_device, dev_type;
diff --git a/file_contexts b/file_contexts
index 30f69e48a..cdacd374c 100644
--- a/file_contexts
+++ b/file_contexts
@@ -104,6 +104,7 @@
 /dev/tun		u:object_r:tun_device:s0
 /dev/uhid		u:object_r:uhid_device:s0
 /dev/uinput		u:object_r:uhid_device:s0
+/dev/uio[0-9]*		u:object_r:uio_device:s0
 /dev/urandom		u:object_r:urandom_device:s0
 /dev/usb_accessory	u:object_r:usbaccessory_device:s0
 /dev/vcs[0-9a-z]*	u:object_r:vcs_device:s0
-- 
GitLab