[selinux-policy: 559/3172] fix some udev naming

Daniel J Walsh dwalsh at fedoraproject.org
Thu Oct 7 19:52:56 UTC 2010


commit 35b494789d2b2840f3c1a82368249314f62801cf
Author: Chris PeBenito <cpebenito at tresys.com>
Date:   Fri Aug 12 18:13:03 2005 +0000

    fix some udev naming

 refpolicy/policy/modules/kernel/devices.fc  |    2 +-
 refpolicy/policy/modules/kernel/terminal.fc |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/refpolicy/policy/modules/kernel/devices.fc b/refpolicy/policy/modules/kernel/devices.fc
index cd661b1..efe4ef2 100644
--- a/refpolicy/policy/modules/kernel/devices.fc
+++ b/refpolicy/policy/modules/kernel/devices.fc
@@ -71,7 +71,7 @@ ifdef(`distro_suse', `
 
 /dev/pts(/.*)?			<<none>>
 
-/dev/snd/.*		-c	context_template(system_u:object_r:sound_device_t,s0)
+/dev/s(ou)?nd/.*	-c	context_template(system_u:object_r:sound_device_t,s0)
 
 /dev/usb/dc2xx.*	-c	context_template(system_u:object_r:scanner_device_t,s0)
 /dev/usb/lp.*		-c	context_template(system_u:object_r:printer_device_t,s0)
diff --git a/refpolicy/policy/modules/kernel/terminal.fc b/refpolicy/policy/modules/kernel/terminal.fc
index cf1b0b0..a22099d 100644
--- a/refpolicy/policy/modules/kernel/terminal.fc
+++ b/refpolicy/policy/modules/kernel/terminal.fc
@@ -12,6 +12,11 @@
 /dev/ptmx		-c	context_template(system_u:object_r:ptmx_t,s0)
 /dev/tty		-c	context_template(system_u:object_r:devtty_t,s0)
 /dev/ttySG.*		-c	context_template(system_u:object_r:tty_device_t,s0)
+
+/dev/pty/.*		-c	context_template(system_u:object_r:bsdpty_device_t,s0)
+
+/dev/vcc?/.*		-c	context_template(system_u:object_r:tty_device_t,s0)
+
 /dev/vcs[^/]*		-c	context_template(system_u:object_r:tty_device_t,s0)
 
 /dev/usb/tty.*		-c	context_template(system_u:object_r:usbtty_device_t,s0)


More information about the scm-commits mailing list