Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276827 - sys-fs/udev-141-r1 not respecting MODE rule in /etc/udev/rules.d/10-myrules.rues
Summary: sys-fs/udev-141-r1 not respecting MODE rule in /etc/udev/rules.d/10-myrules.rues
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-06 21:03 UTC by Cedric Laczny
Modified: 2009-07-07 09:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cedric Laczny 2009-07-06 21:03:48 UTC
I wanted udev to change the permissions of /dev/input/uinput.
Actually they are: crw-r----- 1 root root 10, 223  6. Jul 17:50 /dev/input/uinput.
And I would need them to be: crw-rw---- 1 root games 10, 223  6. Jul 17:51 /dev/input/uinput -> write-support for the group and change group to "games".
The following udev-rule indeed has some effect, as it does change the group accordingly, but the permissions remain unchanged: KERNEL=="uinput", MODE="0660", GROUP="games" (==> crw-r----- 1 root games). 
When I chmod the device node on my own (chmod g+rw /dev/input/uinput => crw-rw---- 1 root games) and issue a "udevadmin trigger" it resets the permissions (crw-r----- 1 root games 10, 223  6. Jul 17:55).


Reproducible: Always

Steps to Reproduce:
1. chmod g+rw /dev/input/uinput
2. udevadmin trigger

Actual Results:  
The group permissions are not set on /dev/input/uinput as they ought to be via udev-rules.

Expected Results:  
udev should respect the rules that are set in /etc/udev/rules.d/10-myrules.rules and give write-access to /dev/input/uinput accordingly

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r1_dyno x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r1_dyno-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-glibc2.2.5
Timestamp of tree: Mon, 06 Jul 2009 10:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.4.6, 2.5.4-r3
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/tmp/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distlocks fixpackages grc parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="de_DE@euro"
LDFLAGS="-Wl,-O1"
LINGUAS="de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/cwiid /usr/portage/local/layman/ikelos"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib alsa amd64 amr amrnb amrwb apache2 apm arts avi bash-completion beep berkdb bitmap-fonts bzip2 cairo cdr chroot cjk crypt cups curl d dbus directfb divx4linux dri dts dvd dvdr dvdread encode esd fbsplash firefox font-server foomaticdb fortran gdbm gif gimp glade gpm gtk gtk2 hal ieee1394 imagemagick imlib ipv6 java jpeg jpeg2k junit kde kdeenablefinal libclamav libg++ libwww mad midi mjpeg mmx motif mozilla mozsvg mp3 mpeg mpeg2 mpeg4 mplayer multilib ncurses nls nptl nptlonly nsplugin odbc ogg oggvorbis opengl oss pam pdf pdflib perl plotutils png posix postgres ppds python qt3 qt4 quicktime readline samba sdl slang sse sse2 ssl ssse3 subversion svg tcl tcpd tetex tga tiff tk truetype truetype-fonts type1-fonts unicode usb vim vim-with-x visualization vorbis wmf wxwindows xcomposite xine xinerama xml xml2 xorg xosd xpm xprint xv xvid xvm zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="dmix asym empty plug null adpcm alaw copy dshare dsnoop extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rafał Mużyło 2009-07-06 23:32:35 UTC
Probably everything works.
10 comes before 50 and at 50 there's
KERNEL=="ts[0-9]*|uinput",      NAME="input/%k", MODE="0640"
Comment 2 Cedric Laczny 2009-07-07 04:08:21 UTC
(In reply to comment #1)
> Probably everything works.
> 10 comes before 50 and at 50 there's
> KERNEL=="ts[0-9]*|uinput",      NAME="input/%k", MODE="0640"
> 

This file does not exist on my system:
# ls -1 /etc/udev/rules.d/
10-dyno_udev.rules
60-wacom.rules
64-device-mapper.rules
70-bluetooth-pcmcia.rules
70-bluetooth.rules
70-libsane.rules
70-persistent-cd.rules
70-persistent-net.rules
90-hal.rules

or

# grep ts\\[ /etc/udev/rules.d/*
#
Comment 3 Rafał Mużyło 2009-07-07 09:10:02 UTC
Try /lib/udev/rules.d/.
Comment 4 Cedric Laczny 2009-07-07 09:39:04 UTC
(In reply to comment #3)
> Try /lib/udev/rules.d/.
> 

Thank you! Even though I am dealing with udev for quite some time now, I didn't know that this directory exists. Sadly, I didn't find this info during my queries and no one else was able to point me there.
The issue is fixed.

However, I have a problem that my X server crashes when executing "udevadm trigger" and /etc/init.d/hald is running. hald and xdm need to be restarted, else upon login to kde the X server dies again. But I will open a new bug report for this.