[arch-commits] Commit in udev/trunk (81-arch.rules PKGBUILD)

2011-12-16 Thread Tom Gundersen
Date: Friday, December 16, 2011 @ 12:15:13
  Author: tomegun
Revision: 145088

get rid of the last few arch rules

Modified:
  udev/trunk/PKGBUILD
Deleted:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |9 -
 PKGBUILD  |8 ++--
 2 files changed, 2 insertions(+), 15 deletions(-)

Deleted: 81-arch.rules
===
--- 81-arch.rules   2011-12-16 15:46:57 UTC (rev 145087)
+++ 81-arch.rules   2011-12-16 17:15:13 UTC (rev 145088)
@@ -1,9 +0,0 @@
-# do not edit this file, it will be overwritten on update
-# this file is going away in the near future
-
-# this might belong in http://aur.archlinux.org/packages.php?ID=22698
-# see also /usr/src/*/Documentation/laptops/sonypi.txt
-KERNEL==sonypi,  MODE=0666
-
-# this might belong in https://aur.archlinux.org/packages.php?ID=18393
-KERNEL==legousbtower*, MODE=0666

Modified: PKGBUILD
===
--- PKGBUILD2011-12-16 15:46:57 UTC (rev 145087)
+++ PKGBUILD2011-12-16 17:15:13 UTC (rev 145088)
@@ -15,8 +15,7 @@
 options=(!makeflags !libtool)
 makedepends=('gobject-introspection' 'gperf')
 
#source=(http://www.kernel.org/pub/linux/utils/kernel/hotplug/$pkgbase-$pkgver.tar.bz2
-source=(http://people.freedesktop.org/~kay/udev/$pkgbase-$pkgver.tar.bz2
-81-arch.rules)
+source=(http://people.freedesktop.org/~kay/udev/$pkgbase-$pkgver.tar.bz2)
 
 build() {
   cd $srcdir/$pkgbase-$pkgver
@@ -42,8 +41,6 @@
   
   cd $srcdir/$pkgbase-$pkgver
   make DESTDIR=${pkgdir} install
-  # Install our rule for permissions and symlinks
-  install -D -m644 $srcdir/81-arch.rules $pkgdir/lib/udev/rules.d/81-arch.rules
 
   # create framebuffer blacklist
   mkdir -p $pkgdir/lib/modprobe.d/
@@ -97,5 +94,4 @@
   # /dev/ppp
   mknod -m 0600 ${pkgdir}/lib/udev/devices/ppp c 108 0
 }
-md5sums=('2fc9c1efcbde98e3d73ffee7a77aea47'
- '3da2bb9891592f9438a07bd641465531')
+md5sums=('2fc9c1efcbde98e3d73ffee7a77aea47')



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-27 Thread Tom Gundersen
Date: Saturday, August 27, 2011 @ 20:18:06
  Author: tomegun
Revision: 136369

rules: drop the storage group

Do not add devices to the storage group by default. This is a security risk.
The typical example is that it will let a remote user access the usb drive
of a local user.

For mounting and partitoning/formatting use udisks.

If this functionality is needed add a custom rule in /etc, or create an AUR
package.

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |   17 -
 1 file changed, 17 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-27 23:37:57 UTC (rev 136368)
+++ 81-arch.rules   2011-08-28 00:18:06 UTC (rev 136369)
@@ -1,23 +1,6 @@
 # Udev rules for Archlinux by Tobias Powalowski tp...@archlinux.org
 # do not edit this file, it will be overwritten on update
 
-## The storage group ##
-
-# permissions for removable devices like cardreaders or sticks (0)
-# and usb to scsi external adapters (7)
-KERNEL==sd*, ATTRS{scsi_level}==3, ATTRS{type}==0|7, GROUP=storage
-
-# permissions for firewire external drives
-KERNEL==sd*, ATTRS{scsi_level}==5, GROUP=storage
-
-# permissions for ide storage like pcmcia card readers
-ACTION!=add, GOTO=pcmcia_end
-SUBSYSTEM!=block, GOTO=pcmcia_end
-KERNEL==hd*[!0-9], IMPORT{program}=ata_id --export $tempnode
-KERNEL==hd*, IMPORT{parent}==ID_*
-KERNEL==hd*, ENV{ID_TYPE}==generic, GROUP=storage
-LABEL=pcmcia_end
-
 ## Misc permissions ##
 
 # this might belong in http://aur.archlinux.org/packages.php?ID=22698



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-27 Thread Tom Gundersen
Date: Saturday, August 27, 2011 @ 21:02:45
  Author: tomegun
Revision: 136370

rules: added comment and link

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |6 ++
 1 file changed, 2 insertions(+), 4 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-28 00:18:06 UTC (rev 136369)
+++ 81-arch.rules   2011-08-28 01:02:45 UTC (rev 136370)
@@ -1,11 +1,9 @@
-# Udev rules for Archlinux by Tobias Powalowski tp...@archlinux.org
 # do not edit this file, it will be overwritten on update
+# this file is going away in the near future
 
-## Misc permissions ##
-
 # this might belong in http://aur.archlinux.org/packages.php?ID=22698
 # see also /usr/src/*/Documentation/laptops/sonypi.txt
 KERNEL==sonypi,  MODE=0666
 
-# should this maybe be packaged with the userspace tool?
+# this might belong in https://aur.archlinux.org/packages.php?ID=18393
 KERNEL==legousbtower*, MODE=0666



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-19 Thread Tom Gundersen
Date: Friday, August 19, 2011 @ 09:38:41
  Author: tomegun
Revision: 135846

rules: remove sgi_fetchop permissions

The mspec driver is not available on i686/x86_64, so this can go away.

Also, added some comments so we will remember to review/remove the last few
rules.

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |   10 +++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-19 10:37:17 UTC (rev 135845)
+++ 81-arch.rules   2011-08-19 13:38:41 UTC (rev 135846)
@@ -1,6 +1,8 @@
 # Udev rules for Archlinux by Tobias Powalowski tp...@archlinux.org
 # do not edit this file, it will be overwritten on update
 
+## The storage group ##
+
 # permissions for removable devices like cardreaders or sticks
 KERNEL==sd*, ATTRS{scsi_level}==3, ATTRS{type}==0, GROUP=storage
 
@@ -18,9 +20,11 @@
 KERNEL==hd*, ENV{ID_TYPE}==generic, GROUP=storage
 LABEL=pcmcia_end
 
-# misc
-KERNEL==sgi_fetchop, MODE=0666
+## Misc permissions ##
+
+# this might belong in http://aur.archlinux.org/packages.php?ID=22698
+# see also /usr/src/*/Documentation/laptops/sonypi.txt
 KERNEL==sonypi,  MODE=0666
 
-# USB devices
+# should this maybe be packaged with the userspace tool?
 KERNEL==legousbtower*, MODE=0666



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-19 Thread Tom Gundersen
Date: Friday, August 19, 2011 @ 16:21:34
  Author: tomegun
Revision: 135865

rules: de-duplicate code

No functional change, just simplified the rules a bit.

We still need to rewrite the storage rules, as they are buggy,
cf. FS#22337.

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |8 +++-
 1 file changed, 3 insertions(+), 5 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-19 20:05:56 UTC (rev 135864)
+++ 81-arch.rules   2011-08-19 20:21:34 UTC (rev 135865)
@@ -3,15 +3,13 @@
 
 ## The storage group ##
 
-# permissions for removable devices like cardreaders or sticks
-KERNEL==sd*, ATTRS{scsi_level}==3, ATTRS{type}==0, GROUP=storage
+# permissions for removable devices like cardreaders or sticks (0)
+# and usb to scsi external adapters (7)
+KERNEL==sd*, ATTRS{scsi_level}==3, ATTRS{type}==0|7, GROUP=storage
 
 # permissions for firewire external drives
 KERNEL==sd*, ATTRS{scsi_level}==5, GROUP=storage
 
-# permissions for usb to scsi external adapters
-KERNEL==sd*, ATTRS{scsi_level}==3, ATTRS{type}==7, GROUP=storage
-
 # permissions for ide storage like pcmcia card readers
 ACTION!=add, GOTO=pcmcia_end
 SUBSYSTEM!=block, GOTO=pcmcia_end



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-16 Thread Tom Gundersen
Date: Tuesday, August 16, 2011 @ 21:30:04
  Author: tomegun
Revision: 135650

rules: remove scanner rule

This is covered by the rules shipped with sane.

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |3 ---
 1 file changed, 3 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-16 22:40:58 UTC (rev 135649)
+++ 81-arch.rules   2011-08-17 01:30:04 UTC (rev 135650)
@@ -18,9 +18,6 @@
 KERNEL==hd*, ENV{ID_TYPE}==generic, GROUP=storage
 LABEL=pcmcia_end
 
-# permissions for SCSI scanners
-SUBSYSTEMS==scsi, KERNEL==sg[0-9]*, ATTRS{type}==6, GROUP=scanner
-
 # misc
 KERNEL==sgi_fetchop, MODE=0666
 KERNEL==sonypi,  MODE=0666



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-16 Thread Tom Gundersen
Date: Tuesday, August 16, 2011 @ 21:47:47
  Author: tomegun
Revision: 135651

rules: tidy

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |3 ---
 1 file changed, 3 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-17 01:30:04 UTC (rev 135650)
+++ 81-arch.rules   2011-08-17 01:47:47 UTC (rev 135651)
@@ -24,6 +24,3 @@
 
 # USB devices
 KERNEL==legousbtower*, MODE=0666
-###
-# Permissions and Symlinks - end
-###



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-12 Thread Tom Gundersen
Date: Friday, August 12, 2011 @ 20:11:44
  Author: tomegun
Revision: 135339

rules: removed comments, this is in the manpage

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |   18 --
 1 file changed, 18 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-12 21:29:10 UTC (rev 135338)
+++ 81-arch.rules   2011-08-13 00:11:44 UTC (rev 135339)
@@ -1,23 +1,5 @@
 # Udev rules for Archlinux by Tobias Powalowski tp...@archlinux.org
 # do not edit this file, it will be overwritten on update
-#
-# There are a number of modifiers that are allowed to be used in some
-# of the different fields. They provide the following subsitutions:
-#
-# %n the kernel number of the device.
-#For example, 'sda3' has a kernel number of '3'
-# %k the kernel name for the device.
-# %M the kernel major number for the device
-# %m the kernel minor number for the device
-# %b the bus id for the device
-# %c the string returned by the PROGRAM
-# %s{filename} the content of a sysfs attribute.
-# %% the '%' char itself.
-#
-# There are a number of modifiers that are allowed to be used in some of the
-# fields.  See the udev man page for a full description of them.
-# global stuff
-#
 
 # permission for sg devices
 KERNEL==sg[0-9]*, ATTRS{type}!=3|6, GROUP=disk, MODE=0660



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-12 Thread Tom Gundersen
Date: Friday, August 12, 2011 @ 20:13:40
  Author: tomegun
Revision: 135340

rules: remove disk rule

Assigning scsi_general devices to the disk rule is done in the
upstream files. It is slightly different, but more likely to be correct.

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |3 ---
 1 file changed, 3 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-13 00:11:44 UTC (rev 135339)
+++ 81-arch.rules   2011-08-13 00:13:40 UTC (rev 135340)
@@ -1,9 +1,6 @@
 # Udev rules for Archlinux by Tobias Powalowski tp...@archlinux.org
 # do not edit this file, it will be overwritten on update
 
-# permission for sg devices
-KERNEL==sg[0-9]*, ATTRS{type}!=3|6, GROUP=disk, MODE=0660
-
 # permissions for IDE CD devices
 SUBSYSTEMS==ide, KERNEL==hd[a-z], ATTR{removable}==1, 
ATTRS{media}==cdrom*, GROUP=optical
 



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-12 Thread Tom Gundersen
Date: Friday, August 12, 2011 @ 20:17:06
  Author: tomegun
Revision: 135341

rules: remove scsi optical rule

Assigning scsi_general devices to the optical/cdrom group is done in the
upstream files. It is slightly different, but more likely to be correct.

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |3 ---
 1 file changed, 3 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-13 00:13:40 UTC (rev 135340)
+++ 81-arch.rules   2011-08-13 00:17:06 UTC (rev 135341)
@@ -4,9 +4,6 @@
 # permissions for IDE CD devices
 SUBSYSTEMS==ide, KERNEL==hd[a-z], ATTR{removable}==1, 
ATTRS{media}==cdrom*, GROUP=optical
 
-# permissions for SCSI CD devices
-SUBSYSTEMS==scsi, KERNEL==s[rg][0-9]*, ATTRS{type}==5, GROUP=optical
-
 # permissions for removable devices like cardreaders or sticks
 KERNEL==sd*, ATTRS{scsi_level}==3, ATTRS{type}==0, GROUP=storage
 



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-12 Thread Tom Gundersen
Date: Friday, August 12, 2011 @ 20:34:34
  Author: tomegun
Revision: 135342

rules: remove IDE optical rule

Assigning devices to the optical/cdrom group is done in the
upstream files. It is different, and recently changed. If it is
wrong we should file an upstream bug. Check before releasing.

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |3 ---
 1 file changed, 3 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-13 00:17:06 UTC (rev 135341)
+++ 81-arch.rules   2011-08-13 00:34:34 UTC (rev 135342)
@@ -1,9 +1,6 @@
 # Udev rules for Archlinux by Tobias Powalowski tp...@archlinux.org
 # do not edit this file, it will be overwritten on update
 
-# permissions for IDE CD devices
-SUBSYSTEMS==ide, KERNEL==hd[a-z], ATTR{removable}==1, 
ATTRS{media}==cdrom*, GROUP=optical
-
 # permissions for removable devices like cardreaders or sticks
 KERNEL==sd*, ATTRS{scsi_level}==3, ATTRS{type}==0, GROUP=storage
 



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-12 Thread Tom Gundersen
Date: Friday, August 12, 2011 @ 20:44:45
  Author: tomegun
Revision: 135343

rules: remove arbitrary symlinks

Symlinks from dev to dev0 does not make much sense,
in case there is more than one devX. Remove the few we have left.

This is similar to what was done for cdrom rules a while back.

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |9 -
 1 file changed, 9 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-13 00:34:34 UTC (rev 135342)
+++ 81-arch.rules   2011-08-13 00:44:45 UTC (rev 135343)
@@ -21,17 +21,8 @@
 # permissions for SCSI scanners
 SUBSYSTEMS==scsi, KERNEL==sg[0-9]*, ATTRS{type}==6, GROUP=scanner
 
-# mem
-KERNEL==ram0, SYMLINK+=ramdisk
-KERNEL==ram1, SYMLINK+=ram
-
 # video4linux
-
-KERNEL==vbi0,SYMLINK+=vbi
-KERNEL==radio0,  SYMLINK+=radio
 KERNEL==radio[0-9]*, GROUP=video
-KERNEL==video0,  SYMLINK+=video
-KERNEL==vtx0,SYMLINK+=vtx
 
 # misc
 KERNEL==sgi_fetchop, MODE=0666



[arch-commits] Commit in udev/trunk (81-arch.rules)

2011-08-12 Thread Tom Gundersen
Date: Friday, August 12, 2011 @ 20:53:59
  Author: tomegun
Revision: 135344

rules: remove v4l rule

All v4l devices are put in the video group in the upstream file. This 
includes 
radio devices, so no need for this rule.

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |3 ---
 1 file changed, 3 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2011-08-13 00:44:45 UTC (rev 135343)
+++ 81-arch.rules   2011-08-13 00:53:59 UTC (rev 135344)
@@ -21,9 +21,6 @@
 # permissions for SCSI scanners
 SUBSYSTEMS==scsi, KERNEL==sg[0-9]*, ATTRS{type}==6, GROUP=scanner
 
-# video4linux
-KERNEL==radio[0-9]*, GROUP=video
-
 # misc
 KERNEL==sgi_fetchop, MODE=0666
 KERNEL==sonypi,  MODE=0666



[arch-commits] Commit in udev/trunk (81-arch.rules)

2010-07-16 Thread Ray Rashif
Date: Friday, July 16, 2010 @ 19:38:00
  Author: schiv
Revision: 85643

udev: remove deprecated raw1394 distro rules - new firewire rules already ship 
with udev

Modified:
  udev/trunk/81-arch.rules

---+
 81-arch.rules |3 ---
 1 file changed, 3 deletions(-)

Modified: 81-arch.rules
===
--- 81-arch.rules   2010-07-16 20:50:45 UTC (rev 85642)
+++ 81-arch.rules   2010-07-16 23:38:00 UTC (rev 85643)
@@ -130,9 +130,6 @@
 # USB devices
 KERNEL==legousbtower*, MODE=0666
 
-# IEEE1394 (firewire) devices
-KERNEL==raw1394, GROUP=video
-
 # kbd devices
 KERNEL==kbd, MODE=0664