Processed (with 5 errors): Re: Bug#814394: xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1
Processing commands for cont...@bugs.debian.org: > severity 814394 wishlist Bug #814394 [xserver-xorg-legacy] xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1 Severity set to 'wishlist' from 'serious' > retitle 814394 Please detect if systemd-login is available before Bug #814394 [xserver-xorg-legacy] xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1 Changed Bug title to 'Please detect if systemd-login is available before' from 'xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1' > dropping root privileges when `needs_root_rights = auto' Unknown command or malformed arguments to command. > Sven Joachim pisze: Unknown command or malformed arguments to command. > > Unknown command or malformed arguments to command. > > The xserver-xorg-core package recommends libpam-systemd for a reason. Unknown command or malformed arguments to command. > I haven't noticed that recommendation before. I run `apt-rdepends Unknown command or malformed arguments to command. Too many unknown commands, stopping here. Please contact me if you need assistance. -- 814394: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814394 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#814394: xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1
severity 814394 wishlist retitle 814394 Please detect if systemd-login is available before dropping root privileges when `needs_root_rights = auto' Sven Joachim pisze: > > The xserver-xorg-core package recommends libpam-systemd for a reason. I haven't noticed that recommendation before. I run `apt-rdepends xserver-xorg' without any other options and noticed that systemd is not a dependency. But since it is only a recommendation, I assume you allow such configurations when the recommended package is missing. Link you sent previously contains reference to #814313, which shows that I am not the only one who have such unusual configuration. > While this could be changed into a Depends, it would probably not really > make you happy. You're right :) I am not really convinced to systemd. > > Now, the bug is that the kms detection did not actually work[1] and so > the wrapper never dropped root rights, contrary to what the manpage > says. This is fixed in xserver 1.18.1, and so you now need > "needs_root_rights = yes" in /etc/X11/Xwrapper.config if you don't want > to install libpam-systemd (or a display manager that starts X as root). I installed xserver-xorg-legacy for its - let me quote the short description - "setuid root Xorg server wrapper". It is really surprising to hear that the wrapper drops the root privileges is some situations. Probably this fact should be better announced - maybe in the package's description or via README.Debian. Or maybe would it be possible to add some reference to the `needs_root_rights' variable into /etc/X11/Xwrapper.config during initial installation or upgrade of the package? Finally - as I suggested in the retitle line - maybe the wrapper could check for working systemd-login before dropping root privileges. Anyway, with `needs_root_rights=yes' I was able to upgrade the package to the latest version and it works! Thanks a lot, robert
Bug#814394: xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1
On 2016-02-16 20:05 +0100, Robert Luberda wrote: > Julien Cristau pisze: >>> >> You don't get to ignore package dependencies and then file bugs. > > Which dependencies? xserver-xorg *does not* depend on systemd > xserver-xorg-legacy *does not* depend on systemd either (to be honest it > does not even depend on xserver-xorg...) The xserver-xorg-core package recommends libpam-systemd for a reason. While this could be changed into a Depends, it would probably not really make you happy. > Previous version of xserver-xorg-legacy worked without systemd. My > system is pretty workable without systemd (I removed the equiv-generated > packages yesterday). Believe or not, I am writing this email in icedove, > which is running on X from xserver-xorg 1:7.7+13 & xserver-xorg-legacy > 2:1.18.0-3. packages. Yes. There is a change in behavior in 1.18.1, but it is actually a bugfix. According to the Xwrapper.config(5) manpage , | needs_root_rights = yes|no|auto | Configure if the wrapper should drop its elevated (root) | rights before starting the X server. Use yes to force exe‐ | cution as root, no to force execution with all suid rights | dropped, and auto to let the wrapper auto-detect. The | default is auto. | | When auto-detecting the wrapper will drop rights if kms graphics | are available and not drop them if no kms graphics are detected. | If a system has multiple graphics cards and some are not kms capa‐ | ble auto-detection may fail, in this case manual configuration | should be used. ` Now, the bug is that the kms detection did not actually work[1] and so the wrapper never dropped root rights, contrary to what the manpage says. This is fixed in xserver 1.18.1, and so you now need "needs_root_rights = yes" in /etc/X11/Xwrapper.config if you don't want to install libpam-systemd (or a display manager that starts X as root). Cheers, Sven 1. https://bugs.freedesktop.org/show_bug.cgi?id=92894
Bug#814394: xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1
Julien Cristau pisze: >> > You don't get to ignore package dependencies and then file bugs. Which dependencies? xserver-xorg *does not* depend on systemd xserver-xorg-legacy *does not* depend on systemd either (to be honest it does not even depend on xserver-xorg...) Previous version of xserver-xorg-legacy worked without systemd. My system is pretty workable without systemd (I removed the equiv-generated packages yesterday). Believe or not, I am writing this email in icedove, which is running on X from xserver-xorg 1:7.7+13 & xserver-xorg-legacy 2:1.18.0-3. packages. Regards, robert
Bug#814394: xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1
Julien Cristau wrote: Hi, >> startx does not longer work after upgrade; `grep EE Xorg.log' shows: >> >>[ 1463.840] (EE) systemd-logind: failed to get session: The name >> org.freedesktop.login1 was not provided by any .service files > > X requires logind. What for? Why xserver-xorg-*-legacy* needs to use this systemd stuff? > Please provide more details about your setup. I had dummy systemd and libpam-systemd created by equiv (to make few packages like gnome-settings-demon or lokalize happy), however I've just removed them: /home/robert> LC_ALL=C dpkg -l *systemd* Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version ArchitectureDescription +++--===-===-== un libpam-systemd (no description available) ii libsystemd0:i386 229-1 i386systemd utility library un systemd (no description available) un systemd-sysv (no description available) (Unfortunately I couldn't remove libsystemd0, because more packages depend on it, including xserver packages). However without systemd, and with the following versions of xorg packages everything seems to work correctly: /home/robert> dpkg -l *xserver-xorg* | grep ^ii ii xserver-xorg 1:7.7+13 i386 X.Org X server ii xserver-xorg-core 2:1.18.1-1 i386 Xorg X server - core server ii xserver-xorg-input-evdev 1:2.10.1-1 i386 X.Org X server -- evdev input driver ii xserver-xorg-input-kbd 1:1.8.1-1+b1 i386 X.Org X server -- keyboard input driver ii xserver-xorg-input-mouse 1:1.9.1-1+b1 i386 X.Org X server -- mouse input driver ii xserver-xorg-legacy2:1.18.0-3 i386 setuid root Xorg server wrapper ii xserver-xorg-video-fbdev 1:0.4.4-1+b4 i386 X.Org X server -- fbdev display driver ii xserver-xorg-video-mach64 6.9.5-1+b1 i386 X.Org X server -- ATI Mach64 display driver ii xserver-xorg-video-r1286.10.0-1+b1 i386 X.Org X server -- ATI r128 display driver However when I try to upgrade xserver-xorg-legacy to 1.18.1, X server does not start any longer, and shows the errors sent in my initial bug report. Regards robert
Bug#814394: xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1
Julien Cristau on 2016/02/13 +0100 @11:30:30: > > startx does not longer work after upgrade; `grep EE > > Xorg.log' shows: > > > >[ 1463.840] (EE) systemd-logind: failed to get > >session: The name org.freedesktop.login1 was not > >provided by any .service files > > X requires logind ... It's not supposed to, when using the X wrapper and needs_root_rights=yes. There used to be an upstream patch that even allowed X to start without this, and skip the ioperm check (it's not actually needed with KMS), which Debian dropped, because I guess they want to require everyone to use systemd. However, even with needs_root_rights, startup broke for me recently as well, I had to install systemd-logind temporarily until I can switch to a distro which doesn't force me to run systemd stuff. Even with systemd-logind installed, you still have to invoke it on the same tty you run X on, even with needs_root_rights=yes, it won't change the perms for you. This, too, worked fine for me up until a month or so ago. I think the solution is to just use a distro which does not require systemd, such as Gentoo. Debian's X maintainers do not appear to be interested in making X work without systemd, as it has for the last 30 years or so...
Bug#814394: xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1
Control: tag -1 moreinfo On Thu, Feb 11, 2016 at 07:58:11 +0100, Robert Luberda wrote: > Package: xserver-xorg-legacy > Version: 2:1.18.1-1 > Severity: serious > Justification: makes the package unusable > > > startx does not longer work after upgrade; `grep EE Xorg.log' shows: > >[ 1463.840] (EE) systemd-logind: failed to get session: The name > org.freedesktop.login1 was not provided by any .service files X requires logind. Please provide more details about your setup. Cheers, Julien
Processed: Re: Bug#814394: xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1
Processing control commands: > tag -1 moreinfo Bug #814394 [xserver-xorg-legacy] xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1 Added tag(s) moreinfo. -- 814394: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814394 Debian Bug Tracking System Contact ow...@bugs.debian.org with problems
Bug#814394: xserver-xorg-legacy: Fails to start xserver after upgrade to 1.18.1
Package: xserver-xorg-legacy Version: 2:1.18.1-1 Severity: serious Justification: makes the package unusable startx does not longer work after upgrade; `grep EE Xorg.log' shows: (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 1463.840] (EE) systemd-logind: failed to get session: The name org.freedesktop.login1 was not provided by any .service files [ 1463.946] (EE) [ 1463.946] (EE) AddScreen/ScreenInit failed for driver 0 [ 1463.946] (EE) [ 1463.946] (EE) [ 1463.946] (EE) Please also check the log file at "/home/robert/.local/share/xorg/Xorg.0.log" for additional information. [ 1463.946] (EE) [ 1463.967] (EE) Server terminated with error (1). Closing log file. Please note that for some reason the log file was created in my $HOME. After downgrading xserver-xorg-legacy to 2:1.18.0-3 X server starts as usual, and makes its log file in /var/log directory. Regards, robert - System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (990, 'unstable'), (200, 'testing') Architecture: i386 (i686) Kernel: Linux 4.3.0-1-686-pae (SMP w/1 CPU core) Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: sysvinit (via /sbin/init) Versions of packages xserver-xorg-legacy depends on: ii debconf [debconf-2.0] 1.5.58 ii libaudit1 1:2.4.5-1 ii libc6 2.21-7 ii xserver-common 2:1.18.1-1 xserver-xorg-legacy recommends no packages. xserver-xorg-legacy suggests no packages. -- debconf information: xserver-xorg-legacy/xwrapper/actual_allowed_users: console * xserver-xorg-legacy/xwrapper/allowed_users: Console Users Only