Changeset adf287b


Ignore:
Timestamp:
03/21/2023 07:23:40 AM (13 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
12.0, 12.1, kea, ken/TL2024, ken/tuningfonts, lazarus, lxqt, plabs/newcss, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, xry111/llvm18, xry111/xf86-video-removal
Children:
d5e731d
Parents:
e65bf5e
git-author:
Xi Ruoyao <xry111@…> (03/21/2023 07:08:01 AM)
git-committer:
Xi Ruoyao <xry111@…> (03/21/2023 07:23:40 AM)
Message:

xorg-server: Mark both elogind and systemd dependencies runtime

xorg-server itself does not need libelogind/libsystemd to invoke the
logind D-Bus API. elogind/systemd-logind works for Xorg server when you
login: once you've logged in on a TTY, pam_systemd or pam_elogind
invokes systemd-logind or elogind to modify the ACL of the device node
of GPU for you:

$ getfacl /dev/dri/card1
getfacl: Removing leading '/' from absolute path names
# file: dev/dri/card1
# owner: root
# group: video
user::rw-
user:xry111:rw-
group::rw-
mask::rw-
other::---

Note that the "user:xry111:rw-" line allows the user logged in (in this
example, xry111, my user account) to operate on the GPU. If
systemd-logind or elogind is not installed, there will be no such a line
and you need to setuid bit for Xorg executable, which is not
recommended.

FWIW logind is smart enough not to add the ACL entry if you've logged in
via SSH.

You may need to logout and login again to use startx if you've installed
pam_{elogind,systemd} and Xorg server & xinit in a continous login
session, but this is already mentioned on xorg-config.xml.

You may ask why Xorg server links to libsystemd or libelogind. It uses
sd_notify and sd_listen_fds API so the Xorg server can function as a
socket-activated systemd service. This is useless in SysV: elogind is
a logind, not a service manager. In Systemd the libsystemd.so installed
in LFS should be enough, and we've never provided instructions to run
Xorg server in BLFS as a systemd service.

Reported-by: Rainer Fiebig <jrf@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • x/installing/xorg-server.xml

    re65bf5e radf287b  
    7979    <bridgehead renderas="sect4">Recommended</bridgehead>
    8080    <para role="recommended">
    81       <phrase revision="sysv"><xref linkend="elogind"/>,</phrase>
     81      <phrase revision="sysv"><xref linkend="elogind"/> (runtime),</phrase>
    8282      <xref linkend="libepoxy"/> (needed for glamor),
    8383      <xref linkend="libtirpc"/>,
    8484      <phrase revision="sysv"><xref role="runtime"
    8585                                    linkend="polkit"/> (runtime),</phrase>
    86       <phrase revision="systemd"><xref linkend="systemd"/>,</phrase> and
     86      <phrase revision="systemd"><xref linkend="systemd"/> (runtime),</phrase> and
    8787      <xref role='runtime' linkend='xorg-libinput-driver'/> (runtime)
    8888    </para>
Note: See TracChangeset for help on using the changeset viewer.