[Bug 2906] New: startx doesn't check device existence of /dev/urandom

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Apr 5 09:18:59 PDT 2005


Please do not reply to this email: if you want to comment on the bug, go to    
       
the URL shown below and enter yourcomments there.     
   
https://bugs.freedesktop.org/show_bug.cgi?id=2906          
     
           Summary: startx doesn't check device existence of /dev/urandom
           Product: xorg
           Version: 6.8.2
          Platform: PC
               URL: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/73743
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Server/general
        AssignedTo: xorg-bugzilla-noise at freedesktop.org
        ReportedBy: arundel at h3c.de
                CC: arundel at h3c.de


The following is a problem-report that was send to www.freebsd.org (modified):

>xorg starts with the following error message:
>"xauth: (stdin):1:  bad add command line"
>This error gets caused by the startx script. In order to
>generate a hexkey (MIT-MAGIC-COOKIE-1) for the xauth entry
>in ~/.Xauthority it uses /dev/urandom. If random
>(urandom -> random [symlink under FreeBSD-STABLE]) is not present (kernel or
>kld), the device
>node is missing and `xauth add` will fail due to a missing hexkey.

>This problem is probably also being caused by any previous
>Xorg and XFree86 port version and very likely appears on all
>FreeBSD RELENGs that use `devd` instead of the MAKEDEV system (>=RELENG_5).
>Since `sh MAKEDEV all` on older systems should take care of
>/dev/random and the link to /dev/urandom it should also be possible
>to delete the device node from /dev and experience the very same
>problems, as in RELENG_5 and higher.

This problem should occur on any OS that has a kernel that can be compiled
without a static /dev/urandom or /dev/random device. Under FreeBSD (maybe other
*BSDs) that device can be loaded from a kernel module.

It would be very nice if the startx script could check for the device existence
of /dev/urandom or /dev/random before it issues the xauth command. The error
message above is very confusing for people dealing with this problem and trying
to solve it.          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email         
     
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the xorg-bugzilla-noise mailing list