All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] rules: set the correct group of the static snd/{seq,timer} nodes
@ 2011-05-24 13:33 Tom Gundersen
  2011-05-27  0:52 ` [PATCH] rules: set the correct group of the static Kay Sievers
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Tom Gundersen @ 2011-05-24 13:33 UTC (permalink / raw)
  To: linux-hotplug

From 01b159b3f67d5e387ebab879e52ae2d1b6be32bf Mon Sep 17 00:00:00 2001
From: Tom Gundersen <teg@jklm.no>
Date: Tue, 24 May 2011 15:04:56 +0200
Subject: [PATCH] rules: set the correct group of the static
snd/{seq,timer} nodes

When removing some of our custom rules from Arch we found that
a user in the audio group could no longer autoload the snd_seq
module. This fixes it, as proposed by Kay.

An analogous fix is applied to snd/timer.

Signed-off-by: Tom Gundersen <teg@jklm.no>
---
 rules/rules.d/50-udev-default.rules |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/rules/rules.d/50-udev-default.rules
b/rules/rules.d/50-udev-default.rules
index cd745ef..f7f134b 100644
--- a/rules/rules.d/50-udev-default.rules
+++ b/rules/rules.d/50-udev-default.rules
@@ -39,6 +39,10 @@ SUBSYSTEM="drm",		GROUP="video"

 # sound
 SUBSYSTEM="sound",		GROUP="audio"
+KERNEL="seq",			GROUP="audio", MODE="0660", \
+  OPTIONS+="static_node=snd/seq"
+KERNEL="timer",		GROUP="audio", MODE="0660", \
+  OPTIONS+="static_node=snd/timer"

 # DVB (video)
 SUBSYSTEM="dvb", GROUP="video"
-- 
1.7.5.2

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] rules: set the correct group of the static
  2011-05-24 13:33 [PATCH] rules: set the correct group of the static snd/{seq,timer} nodes Tom Gundersen
@ 2011-05-27  0:52 ` Kay Sievers
  2011-05-29 23:35 ` Tom Gundersen
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2011-05-27  0:52 UTC (permalink / raw)
  To: linux-hotplug

On Tue, May 24, 2011 at 15:33, Tom Gundersen <teg@jklm.no> wrote:
> When removing some of our custom rules from Arch we found that
> a user in the audio group could no longer autoload the snd_seq
> module. This fixes it, as proposed by Kay.

Found out that we can use something simpler. Should work now.

Thanks for the reminder,
Kay

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rules: set the correct group of the static
  2011-05-24 13:33 [PATCH] rules: set the correct group of the static snd/{seq,timer} nodes Tom Gundersen
  2011-05-27  0:52 ` [PATCH] rules: set the correct group of the static Kay Sievers
@ 2011-05-29 23:35 ` Tom Gundersen
  2011-05-30  0:27 ` Kay Sievers
  2011-05-30 12:02 ` Tom Gundersen
  3 siblings, 0 replies; 5+ messages in thread
From: Tom Gundersen @ 2011-05-29 23:35 UTC (permalink / raw)
  To: linux-hotplug

[forgot to cc]
On Fri, May 27, 2011 at 2:52 AM, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Tue, May 24, 2011 at 15:33, Tom Gundersen <teg@jklm.no> wrote:
>> When removing some of our custom rules from Arch we found that
>> a user in the audio group could no longer autoload the snd_seq
>> module. This fixes it, as proposed by Kay.
>
> Found out that we can use something simpler. Should work now.

Close, but no cigar. Looks like the static nodes are not assigned
permissions 0660 even if a gid is set (the nodes have perms 0600).

Cheers,

Tom

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rules: set the correct group of the static
  2011-05-24 13:33 [PATCH] rules: set the correct group of the static snd/{seq,timer} nodes Tom Gundersen
  2011-05-27  0:52 ` [PATCH] rules: set the correct group of the static Kay Sievers
  2011-05-29 23:35 ` Tom Gundersen
@ 2011-05-30  0:27 ` Kay Sievers
  2011-05-30 12:02 ` Tom Gundersen
  3 siblings, 0 replies; 5+ messages in thread
From: Kay Sievers @ 2011-05-30  0:27 UTC (permalink / raw)
  To: linux-hotplug

On Mon, May 30, 2011 at 01:35, Tom Gundersen <teg@jklm.no> wrote:
> On Fri, May 27, 2011 at 2:52 AM, Kay Sievers <kay.sievers@vrfy.org> wrote:
>> On Tue, May 24, 2011 at 15:33, Tom Gundersen <teg@jklm.no> wrote:
>>> When removing some of our custom rules from Arch we found that
>>> a user in the audio group could no longer autoload the snd_seq
>>> module. This fixes it, as proposed by Kay.
>>
>> Found out that we can use something simpler. Should work now.
>
> Close, but no cigar. Looks like the static nodes are not assigned
> permissions 0660 even if a gid is set (the nodes have perms 0600).

rules: static_node - use 0660 if group is given to get the cigar
http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h¡12873b5bc9ebbae39c32f502bc6211f33546cc

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] rules: set the correct group of the static
  2011-05-24 13:33 [PATCH] rules: set the correct group of the static snd/{seq,timer} nodes Tom Gundersen
                   ` (2 preceding siblings ...)
  2011-05-30  0:27 ` Kay Sievers
@ 2011-05-30 12:02 ` Tom Gundersen
  3 siblings, 0 replies; 5+ messages in thread
From: Tom Gundersen @ 2011-05-30 12:02 UTC (permalink / raw)
  To: linux-hotplug

On Mon, May 30, 2011 at 2:27 AM, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Mon, May 30, 2011 at 01:35, Tom Gundersen <teg@jklm.no> wrote:
>> On Fri, May 27, 2011 at 2:52 AM, Kay Sievers <kay.sievers@vrfy.org> wrote:
>>> On Tue, May 24, 2011 at 15:33, Tom Gundersen <teg@jklm.no> wrote:
>>>> When removing some of our custom rules from Arch we found that
>>>> a user in the audio group could no longer autoload the snd_seq
>>>> module. This fixes it, as proposed by Kay.
>>>
>>> Found out that we can use something simpler. Should work now.
>>
>> Close, but no cigar. Looks like the static nodes are not assigned
>> permissions 0660 even if a gid is set (the nodes have perms 0600).
>
> rules: static_node - use 0660 if group is given to get the cigar
> http://git.kernel.org/?p=linux/hotplug/udev.git;a=commitdiff;h¡12873b5bc9ebbae39c32f502bc6211f33546cc

Thanks!

-t
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-05-30 12:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-24 13:33 [PATCH] rules: set the correct group of the static snd/{seq,timer} nodes Tom Gundersen
2011-05-27  0:52 ` [PATCH] rules: set the correct group of the static Kay Sievers
2011-05-29 23:35 ` Tom Gundersen
2011-05-30  0:27 ` Kay Sievers
2011-05-30 12:02 ` Tom Gundersen

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.