startx doesn't initialize xauth correctly
the default /etc/X11/xinit/xserverrc ignores command line arguments
invoked from startx:
xxx:~# cat /etc/X11/xinit/xserverrc
#!/bin/sh
exec /usr/bin/X -nolisten tcp
Launching startx from the command line invokes xserverrc with display
name and -auth file, but both are ignored:
xinit /home/user/.xinitrc — /etc/X11/xinit/xserverrc :0 -auth
/tmp/serverauth.fd4FKQvDkW
^
this way, all local users are allowed to connect to the X server,
ignoring the xauth file.
If this isn’t an intended/known behaviour, maybe we can add a $@ at
the
end of the command line in xserverrc, or just remove this file and add
the “-nolisten tcp” in the defaultserverargs variable of startx.
Login managers (or at least slim) launches X directly with a correct
-auth param and thus aren’t affected by this.
(from redmine: issue id 2688, created on 2014-02-19, closed on 2014-06-25)
- Changesets:
- Revision 41017a74 by Natanael Copa on 2014-05-29T17:02:43Z:
main/xinit: initialize xauth properly
ref #2688
- Revision d8ce3dac by Natanael Copa on 2014-06-19T08:33:31Z:
main/xinit: initialize xauth properly
fixes #2688
(cherry picked from commit 41017a742b9a035ade09a5f019126f1896595236)
Conflicts:
main/xinit/APKBUILD