[Bug 573669] New: /etc/X11/xdm/GiveDevices spams .xsession-errors
ls -ali /dev/xconsole
http://bugzilla.novell.com/show_bug.cgi?id=573669 http://bugzilla.novell.com/show_bug.cgi?id=573669#c0 Summary: /etc/X11/xdm/GiveDevices spams .xsession-errors Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Minor Priority: P5 - None Component: X11 Applications AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ensonic@sonicpulse.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.6) Gecko/20091201 SUSE/3.5.6-1.1.1 Firefox/3.5.6 My $HOME/.xsession-errors starts with chown: changing ownership of `/dev/xconsole': Operation not permitted chmod: changing permissions of `/dev/xconsole': Operation not permitted This is caused by /etc/X11/xdm/GiveDevices which for some reasons does not have sufficient permissions. For reference this are the device permissions. pr-------- 1 root tty 0 25. Jan 18:25 /dev/xconsole| It does not seem to cause any problems, but it would be nice to get that confirmed. I am filing this also as I'd like to get my .xsession-errors cleaned from 'non-issues' to aid error reporting. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c
yang xiaoyu
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c1
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c2
--- Comment #2 from Stefan Kost
mount | grep "/dev " udev on /dev type tmpfs (rw)
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c3
--- Comment #3 from Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c4
Stefan Kost
l /lib/udev/devices insgesamt 2 drwxr-xr-x 5 root root 480 22. Dez 20:52 ./ drwxr-xr-x 5 root root 1152 1. Feb 21:57 ../ crw------- 1 root root 5, 1 16. Dez 01:58 console lrwxrwxrwx 1 root root 11 22. Dez 20:52 core -> /proc/kcore lrwxrwxrwx 1 root root 13 22. Dez 20:52 fd -> /proc/self/fd/ crw-rw---- 1 root root 1, 11 16. Dez 01:58 kmsg crw-rw---- 1 root lp 6, 0 16. Dez 01:58 lp0 drwxr-xr-x 2 root root 72 22. Dez 20:52 net/ crw-rw-rw- 1 root root 1, 3 16. Dez 01:58 null crw-rw---- 1 root root 108, 0 16. Dez 01:58 ppp crw-rw-rw- 1 root tty 5, 2 16. Dez 01:58 ptmx drwxr-xr-x 2 root root 48 16. Dez 01:57 pts/ drwxr-xr-x 2 root root 48 16. Dez 01:57 shm/ lrwxrwxrwx 1 root root 15 22. Dez 20:52 stderr -> /proc/self/fd/2 lrwxrwxrwx 1 root root 15 22. Dez 20:52 stdin -> /proc/self/fd/0 lrwxrwxrwx 1 root root 15 22. Dez 20:52 stdout -> /proc/self/fd/1 crw-rw-rw- 1 root tty 5, 0 16. Dez 01:58 tty crw--w---- 1 root tty 4, 0 16. Dez 01:58 tty0 crw--w---- 1 root tty 4, 1 16. Dez 01:58 tty1 crw-rw-rw- 1 root root 1, 5 16. Dez 01:58 zero root@hoshi:~> grep -s xconsole /lib/udev/* /lib/udev/rules.d/* root@hoshi:~> grep -rs xconsole /etc/udev/ root@hoshi:~>
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c5
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c6
Stefan Kost
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c7
--- Comment #7 from Stefan Kost
IMHO the wrong ownership should be correct within devtmpfs at the first creation. Otherwise /dev/xconsole is not usable ... even root seems not to able to use it as /etc/X11/xdm/GiveDevices is called by root (hopefully).
@Stefan Kost:
Please check if /etc/X11/xdm/GiveDevices is executed by root that is that the line
id -u
before
chown ${USER}:tty /dev/xconsole
should write out `0'
I logged that to syslog and I think there is one of the problems: Feb 20 18:55:08 hoshi GiveDevices[3213]: 573669-permissions: 500 500 is my own userid.
The fifo device /dev/xconsole its self created in /etc/init.d/syslog but only if it does not exit:
if ! test -e /dev/xconsole ; then mknod -m 0600 /dev/xconsole p chown root:tty /dev/xconsole fi
which is definitly not the permission found in comment #0.
-- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c8
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c9
--- Comment #9 from Stefan Kost
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c10
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c11
Dr. Werner Fink
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c
Stefan Dirsch
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c12
Vincent Untz
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c13
Stefan Kost
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c14
--- Comment #14 from Stefan Kost
http://bugzilla.novell.com/show_bug.cgi?id=573669
http://bugzilla.novell.com/show_bug.cgi?id=573669#c15
Vincent Untz
participants (1)
-
bugzilla_noreply@novell.com