All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] [PATCH] udev rules: stricter file permissions
Date: Mon, 20 Oct 2008 13:17:23 +0200	[thread overview]
Message-ID: <48FC68C3.4020604@domain.hid> (raw)

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).

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


                 reply	other threads:[~2008-10-20 11:17 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48FC68C3.4020604@domain.hid \
    --to=jan.kiszka@domain.hid \
    --cc=xenomai@xenomai.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.