Skip to contentSkip to conversation

device file context fixes

PATCH New Dominick Grift 2 participants 4 messages Aug 16, 2012 – Aug 21, 2012

lore
Share & tools
lore
#0 lore raw

cover device file context fixes

I noticed that my /dev/watchdog0 character device node is still device_t and while reviewing i noticed a possible typo.

Dominick Grift (2):
There can be more than a single watchdog interface Fix a suspected typo

 policy/modules/kernel/devices.fc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
1.7.11.2
#1 lore raw

PATCH 1/2 There can be more than a single watchdog interface

---
 policy/modules/kernel/devices.fc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
policy/modules/kernel/devices.fc +1 -1
index 02b7ac1..29f1dc0 100644
@@ -125,7 +125,7 @@ ifdef(`distro_suse', `
 /dev/vrtpanel		-c	gen_context(system_u:object_r:mouse_device_t,s0)
 /dev/vttuner		-c	gen_context(system_u:object_r:v4l_device_t,s0)
 /dev/vtx.*		-c	gen_context(system_u:object_r:v4l_device_t,s0)
-/dev/watchdog		-c	gen_context(system_u:object_r:watchdog_device_t,s0)
+/dev/watchdog.*		-c	gen_context(system_u:object_r:watchdog_device_t,s0)
 /dev/winradio.		-c	gen_context(system_u:object_r:v4l_device_t,s0)
 /dev/z90crypt		-c	gen_context(system_u:object_r:crypt_device_t,s0)
 /dev/zero		-c	gen_context(system_u:object_r:zero_device_t,s0)
Signature · 1 line
1.7.11.2
#2 lore raw

PATCH 2/2 Fix a suspected typo

In reply to Dominick Grift
---
 policy/modules/kernel/devices.fc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
policy/modules/kernel/devices.fc +1 -1
index 29f1dc0..06a0e93 100644
@@ -126,7 +126,7 @@ ifdef(`distro_suse', `
 /dev/vttuner		-c	gen_context(system_u:object_r:v4l_device_t,s0)
 /dev/vtx.*		-c	gen_context(system_u:object_r:v4l_device_t,s0)
 /dev/watchdog.*		-c	gen_context(system_u:object_r:watchdog_device_t,s0)
-/dev/winradio.		-c	gen_context(system_u:object_r:v4l_device_t,s0)
+/dev/winradio.*		-c	gen_context(system_u:object_r:v4l_device_t,s0)
 /dev/z90crypt		-c	gen_context(system_u:object_r:crypt_device_t,s0)
 /dev/zero		-c	gen_context(system_u:object_r:zero_device_t,s0)
 
Signature · 1 line
1.7.11.2
#3 lore raw

cover device file context fixes

In reply to Dominick Grift
Quoted 9 lines · Dominick Grift

I noticed that my /dev/watchdog0 character device node is still device_t and while reviewing i noticed a possible typo.

Dominick Grift (2):
There can be more than a single watchdog interface Fix a suspected typo

 policy/modules/kernel/devices.fc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

This set is merged.

Signature · 3 lines
Chris PeBenito
Tresys Technology, LLC
www.tresys.com | oss.tresys.com