Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 670930 - x11-base/xorg-server should support sys-auth/elogind
Summary: x11-base/xorg-server should support sys-auth/elogind
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: elogind-support
  Show dependency tree
 
Reported: 2018-11-11 16:41 UTC by Andreas Sturmlechner
Modified: 2019-03-21 19:39 UTC (History)
1 user (show)

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 Andreas Sturmlechner gentoo-dev 2018-11-11 16:41:25 UTC
USE systemd currently enables the following build switches:

$(use_with systemd systemd-daemon)
$(use_enable systemd systemd-logind)
$(use_enable systemd suid-wrapper)

The latter 2 should be doable with elogind as well, but may need build system patching.
Comment 1 Sven Eden 2018-11-15 07:35:48 UTC
Good idea!

The last time I looked, there wasn't anything to be gained. This seems to have changed dramatically.

@all : Some efforts are already on their way. Please have a look at this:
https://github.com/elogind/elogind/issues/70#issuecomment-438832595
Comment 2 Larry the Git Cow gentoo-dev 2019-03-21 19:39:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bdd4b3309fef4c58066f9a5f88b4db448be19dfe

commit bdd4b3309fef4c58066f9a5f88b4db448be19dfe
Author:     Piotr Karbowski <slashbeast@gentoo.org>
AuthorDate: 2019-03-21 19:39:09 +0000
Commit:     Piotr Karbowski <slashbeast@gentoo.org>
CommitDate: 2019-03-21 19:39:09 +0000

    x11-base/xorg-server: elogind integration, -suid by default.
    
    This enables users that does not run systemd to have suid-less Xorg. A
    privileged entity is required for SETMASTER and DROPMASTER calls to get
    control over framebuffer. Additionally elogind with udev grant user
    access to input device nodes and elogind alone interfaces the
    SETMASTER/DROPMASTER calls.
    
    Xorg-server will do keeptty automatically, meaning one does not need to
    pass any extra parameters to `startx` to get things working, It does
    take adventage of $XDG_SEAT and $XDG_VTNR set by pam_elogind upon login.
    
    Although it's possible to run rootless without udev (with any /dev
    manager, like mdev of busybox), the configure flag that USE=elogind
    enables (--enable-systemd-logind) checks if udev toggle is also enabled.
    This leads to a situation where udev needs to be present on user system
    while building, however, udev does not needs to be running, as long as
    user is in video and input system groups, elogind is running and user
    logged in when pam_elogind.so was enabled Xorg will start as regular
    user.
    
    Closes: https://bugs.gentoo.org/670930
    Ack-by: Matt Turner <mattst88@gentoo.org>
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Piotr Karbowski <slashbeast@gentoo.org>

 x11-base/xorg-server/metadata.xml              |  1 +
 x11-base/xorg-server/xorg-server-1.20.4.ebuild | 14 +++++++++++---
 x11-base/xorg-server/xorg-server-9999.ebuild   | 14 +++++++++++---
 3 files changed, 23 insertions(+), 6 deletions(-)