Skip to contentSkip to conversation

udev rules: stricter file permissions

PATCH New Jan Kiszka 1 participant 1 message Oct 20, 2008

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 udev rules: stricter file permissions

Don't allow the world to access special Xenomai devices. Suggest to use a separate group for managing access (udev will fall back to root if group does not exist).

ksrc/nucleus/udev/rtheap.rules +1 -1
Index: xenomai/ksrc/nucleus/udev/rtheap.rules
===================================================================
@@ -1,2 +1,2 @@
 # real-time heap device (Xenomai:rtheap)
-KERNEL=="rtheap", MODE="0666"
+KERNEL=="rtheap", MODE="0660", GROUP=="xenomai"
ksrc/nucleus/udev/rtpipe.rules +1 -1
Index: xenomai/ksrc/nucleus/udev/rtpipe.rules
===================================================================
@@ -1,2 +1,2 @@
 # real-time pipe devices (Xenomai:rtpipe)
-KERNEL=="rtp[0-9]*", MODE="0666"
+KERNEL=="rtp[0-9]*", MODE="0660", GROUP="xenomai"
Signature · 2 lines
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux