<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>185069</bug_id>
          
          <creation_ts>2007-07-12 13:07 0000</creation_ts>
          <short_desc>sys-fs/udev - 50-udev.rules minor permission problem with USB devices on 2.6.22+ kernels</short_desc>
          <delta_ts>2007-07-12 14:25:20 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Core system</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>maekke@gentoo.org</reporter>
          <assigned_to>udev-bugs@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>maekke@gentoo.org</who>
            <bug_when>2007-07-12 13:07:00 0000</bug_when>
            <thetext>from 50-udev.rules:
# usbfs-like device nodes
# the way to go up to kernel 2.6.21 (and above if setting USB_DEVICE_CLASS=y)
SUBSYSTEM==&quot;usb_device&quot;, PROGRAM=&quot;/bin/sh -c &apos;K=%k; K=$${K#usbdev}; printf bus/usb/%%03i/%%03i $${K%%%%.*} $${K#*.}&apos;&quot;, NAME=&quot;%c&quot;, GROUP=&quot;usb&quot;, MODE=&quot;0664&quot;
# starting from kernel 2.6.22 use this rule
SUBSYSTEM==&quot;usb&quot;, ACTION==&quot;add&quot;, ENV{DEVTYPE}==&quot;usb_device&quot;, \
        NAME=&quot;bus/usb/$env{BUSNUM}/$env{DEVNUM}&quot;, GROUP=&quot;usb&quot;, MODE=&quot;0644&quot;

the MODES differ, it would be nice, if &gt;=2.6.22 could also get MODE=&quot;0664&quot;.
TIA


# qlist -Iv udev
sys-fs/udev-113-r1

Portage 2.1.3_rc7 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.22 i686)
=================================================================
System uname: 2.6.22 i686 Intel(R) Pentium(R) M processor 1600MHz
Gentoo Base System release 2.0.0_alpha3
Timestamp of tree: Wed, 11 Jul 2007 09:30:10 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22
ACCEPT_KEYWORDS=&quot;x86 ~x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium-m -fomit-frame-pointer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c&quot;
CXXFLAGS=&quot;-O2 -march=pentium-m -fomit-frame-pointer -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
EMERGE_DEFAULT_OPTS=&quot;--nospinner&quot;
FEATURES=&quot;collision-protect distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox&quot;
GENTOO_MIRRORS=&quot;http://mirror.switch.ch/mirror/gentoo/ http://gentoo.inode.at/&quot;
LANG=&quot;en_GB.utf8&quot;
LC_ALL=&quot;en_GB.utf8&quot;
LINGUAS=&quot;en de en_GB&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
SYNC=&quot;rsync://192.168.2.1/gentoo-portage&quot;
USE=&quot;X a52 aac acl acpi alsa apache2 avahi berkdb bidi bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups curl dbus divx divx4linux dri dts dvd dvdr dvdread eds emboss encode evo exif fam ffmpeg firefox flac fortran gdbm gif gnome gnutls gpm graphviz gs gstreamer gtk hal iconv ieee1394 ipod ipv6 isdnlog java jpeg kde kdeenablefinal kerberos libg++ live mad midi mikmod mmx mono mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ntfs ogg oggvorbis opengl openmp oss pam pcre pdf perl png pppd python qt qt3 qt3support qt4 quicktime readline real reflection ruby samba screen sdl session spell spl sse sse2 ssl stream svg tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts udev unicode usb vcd vorbis win32codecs wxwindows x86 xcomposite xine xinerama xml2 xorg xprint xv xvid zlib&quot; ALSA_PCM_PLUGINS=&quot;adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol&quot; ELIBC=&quot;glibc&quot; INPUT_DEVICES=&quot;evdev synaptics mouse keyboard&quot; KERNEL=&quot;linux&quot; LINGUAS=&quot;en de en_GB&quot; USERLAND=&quot;GNU&quot; VIDEO_CARDS=&quot;radeon&quot;
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>maekke@gentoo.org</who>
            <bug_when>2007-07-12 13:07:29 0000</bug_when>
            <thetext>Created an attachment (id=124640)
50-udev-rules.patch

proposed patch</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>zzam@gentoo.org</who>
            <bug_when>2007-07-12 14:25:20 0000</bug_when>
            <thetext>This was just a typo. Fixed in udev-113-r2.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>124640</attachid>
            <date>2007-07-12 13:07 0000</date>
            <desc>50-udev-rules.patch</desc>
            <filename>50-udev-rules.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIDUwLXVkZXYucnVsZXMub3JpZwkyMDA3LTA3LTEyIDE1OjAxOjAyLjAwMDAwMDAwMCArMDIw
MAorKysgNTAtdWRldi5ydWxlcwkyMDA3LTA3LTEyIDE1OjAxOjExLjAwMDAwMDAwMCArMDIwMApA
QCAtMjQ1LDcgKzI0NSw3IEBACiBTVUJTWVNURU09PSJ1c2JfZGV2aWNlIiwgUFJPR1JBTT0iL2Jp
bi9zaCAtYyAnSz0lazsgSz0kJHtLI3VzYmRldn07IHByaW50ZiBidXMvdXNiLyUlMDNpLyUlMDNp
ICQke0slJSUlLip9ICQke0sjKi59JyIsIE5BTUU9IiVjIiwgR1JPVVA9InVzYiIsIE1PREU9IjA2
NjQiCiAjIHN0YXJ0aW5nIGZyb20ga2VybmVsIDIuNi4yMiB1c2UgdGhpcyBydWxlCiBTVUJTWVNU
RU09PSJ1c2IiLCBBQ1RJT049PSJhZGQiLCBFTlZ7REVWVFlQRX09PSJ1c2JfZGV2aWNlIiwgXAot
CU5BTUU9ImJ1cy91c2IvJGVudntCVVNOVU19LyRlbnZ7REVWTlVNfSIsIEdST1VQPSJ1c2IiLCBN
T0RFPSIwNjQ0IiAKKwlOQU1FPSJidXMvdXNiLyRlbnZ7QlVTTlVNfS8kZW52e0RFVk5VTX0iLCBH
Uk9VUD0idXNiIiwgTU9ERT0iMDY2NCIgCiAKICMgU2V0dGluZyB0aW1lb3V0IGZvciB0YXBlLWRl
dmljZXMgKHR5cGUgMSkgdG8gOTAwIHNlY29uZHMKICMgYW5kIDYwIHNlY29uZHMgZm9yIGRldmlj
ZSB0eXBlcyAwLCA3IGFuZCAxNAo=
</data>        

          </attachment>
    </bug>

</bugzilla>