Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98064 - using udev, /dev/null permissions are borked during boot, causing kde login hangs
Summary: using udev, /dev/null permissions are borked during boot, causing kde login h...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Greg Kroah-Hartman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-05 15:38 UTC by Tom Felker
Modified: 2005-07-05 18:58 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 Tom Felker 2005-07-05 15:38:36 UTC
After upgrading a bunch of packages, my system now sets the permissions of
/dev/null to 0660, which prevents non-root users from using it.  This causes
logins on the console to complain, and when logging in via KDM, KDE hangs while
"initializing system services," while xrdb hogs the CPU.  The problem can be
temporarily fixed by chmod a+rw /dev/null, but /dev/null's permissions revert to
0660 on the next reboot.

Googling reveals an IRC log of someone who had this same problem and fixed it
with different versions of packages, I'll be trying that soon.

There seem to be other possibly related problems that aren't fixed by fixing
/dev/null permissions, but that might be related to permissions on /dev.  xterm
and alsamixer works only as root, and otherwise say permission denied.

Reproducible: Always
Steps to Reproduce:
1.  chmod a+rw /dev/null # ensure that the permissions are correct
2.  reboot


Actual Results:  
note that /dev/null is now only ug+rw
and xterm and alsamixer don't work

Expected Results:  
/dev/null shoud be a+rw (0666), xterms and alsamixer should work

eggbert tom # emerge -pv baselayout udev kde

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] sys-apps/baselayout-1.11.12-r4  -bootstrap -build -static +unico
de 0 kB 
[ebuild   R   ] sys-fs/udev-056  (-selinux) -static 0 kB 
[ebuild   R   ] kde-base/kde-3.4.1  -accessibility 0 kB 

Total size of downloads: 0 kB


eggbert tom # emerge info
Portage 2.0.51.19 (default-linux/amd64/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r
1, 2.6.11-cko2 x86_64)
=================================================================
System uname: 2.6.11-cko2 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jun 17 2005, 11:29:55)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.5, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.8.1-r4
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CFLAGS="--pipe -fomit-frame-pointer -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share
/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/shar
e/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="--pipe -fomit-frame-pointer -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://gentoo.cites.uiuc.edu/gentoo-portage"
USE="amd64 X aalib acpi aim alsa arts berkdb bitmap-fonts bonobo bzlib cdparanoi
a cdr cjk crypt cups curl dvd dvdr encode esd fam flac font-server foomatic foom
aticdb fortran gcj gdbm ggi gif gnome gpm gstreamer gtk gtk2 gtkhtml imagemagick
 imlib ipv6 jabber jack java joystick jp2 jpeg junit kde kerberos ladcca libwww 
lzw lzw-tiff mad maildir matroska mbox mikmod motif mozilla mp3 mpeg multilib my
sql mythtv ncurses nls nptl nvidia offensive ogg openal opengl oss pam perl png 
postgres ppds python qt readline rtc ruby samba sdl server slang speex spell ssl
 tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userloca
les v4l v4l2 vorbis wxwindows xine xinerama xml xml2 xmms xpm xprint xrandr xv x
vid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLA
Y
Comment 1 Tom Felker 2005-07-05 15:43:13 UTC
I just upgraded to udev-060, now the problems are gone.

General bugzilla usage question - am I supposed to mark this as closed then?
Comment 2 Greg Kroah-Hartman (RETIRED) gentoo-dev 2005-07-05 18:58:41 UTC
I'll close it, thanks.