[ff3264f] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY elogind-download-http "https://github.com/elogind/elogind/archive/v&elogind-version;/elogind-&elogind-version;.tar.gz">
|
---|
| 8 | <!ENTITY elogind-download-ftp " ">
|
---|
[1ede364c] | 9 | <!ENTITY elogind-md5sum "fb5ba9da1115d68d2b6cdbcd10167b7d">
|
---|
[ff3264f] | 10 | <!ENTITY elogind-size "1.3 MB">
|
---|
[1ede364c] | 11 | <!ENTITY elogind-buildsize "56 MB">
|
---|
| 12 | <!ENTITY elogind-time "0.4 SBU (NINJAJOBS=1)">
|
---|
[ff3264f] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="elogind" revision="sysv" xreflabel="elogind-&elogind-version;">
|
---|
| 16 | <?dbhtml filename="elogind.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
| 22 |
|
---|
| 23 | <title>elogind-&elogind-version;</title>
|
---|
| 24 |
|
---|
| 25 | <indexterm zone="elogind">
|
---|
| 26 | <primary sortas="a-elogind">elogind</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to elogind</title>
|
---|
| 31 |
|
---|
| 32 | <para>
|
---|
| 33 | <application>elogind</application> is the
|
---|
| 34 | <application>systemd</application> project's "logind", extracted out to
|
---|
| 35 | be a standalone daemon. It integrates with <xref linkend="linux-pam"/>
|
---|
| 36 | to know the set of users that are logged in to a system and whether they
|
---|
| 37 | are logged in graphically, on the console, or remotely.
|
---|
| 38 | <application>Elogind</application> exposes this information via the
|
---|
| 39 | standard org.freedesktop.login1 <application>D-Bus</application>
|
---|
| 40 | interface, as well as through the file system using systemd's standard
|
---|
| 41 | <filename class="directory">/run/systemd</filename> layout.
|
---|
| 42 | </para>
|
---|
| 43 |
|
---|
[82bdecf] | 44 | &lfs90_checked;
|
---|
[ff3264f] | 45 |
|
---|
| 46 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 47 | <itemizedlist spacing="compact">
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (HTTP): <ulink url="&elogind-download-http;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download (FTP): <ulink url="&elogind-download-ftp;"/>
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download MD5 sum: &elogind-md5sum;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Download size: &elogind-size;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated disk space required: &elogind-buildsize;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | <listitem>
|
---|
| 74 | <para>
|
---|
| 75 | Estimated build time: &elogind-time;
|
---|
| 76 | </para>
|
---|
| 77 | </listitem>
|
---|
| 78 | </itemizedlist>
|
---|
| 79 |
|
---|
| 80 | <bridgehead renderas="sect3">elogind Dependencies</bridgehead>
|
---|
| 81 |
|
---|
| 82 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 83 | <para role="required">
|
---|
[bc3bb455] | 84 | <xref role="first" linkend="dbus"/>
|
---|
[ff3264f] | 85 | </para>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 88 | <para role="recommended">
|
---|
| 89 | <xref linkend="DocBook"/>,
|
---|
| 90 | <xref linkend="docbook-xsl"/>, and
|
---|
| 91 | <xref linkend="libxslt"/> (to build the man pages),
|
---|
| 92 | <xref linkend="linux-pam"/>, and
|
---|
| 93 | <xref linkend="polkit" role="runtime"/> (runtime)
|
---|
| 94 | </para>
|
---|
| 95 |
|
---|
| 96 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 97 | <para role="optional">
|
---|
| 98 | For the tests:
|
---|
| 99 | <xref linkend="lxml"/>,
|
---|
| 100 | <xref linkend="gobject-introspection"/>,
|
---|
| 101 | <xref linkend="zsh"/>,
|
---|
| 102 | <xref linkend="valgrind"/>,
|
---|
| 103 | <ulink url="https://github.com/linux-audit/audit-userspace">
|
---|
| 104 | audit-userspace</ulink>,
|
---|
| 105 | <ulink url="https://github.com/scop/bash-completion">
|
---|
| 106 | bash-completion</ulink>,
|
---|
| 107 | <ulink url="https://mirrors.edge.kernel.org/pub/linux/utils/kernel/kexec/">
|
---|
| 108 | kexec</ulink>, and
|
---|
| 109 | <ulink url="http://www.selinuxproject.org/page/Main_Page">
|
---|
| 110 | SELinux</ulink>
|
---|
| 111 | </para>
|
---|
| 112 |
|
---|
| 113 | <para condition="html" role="usernotes">User Notes:
|
---|
| 114 | <ulink url="&blfs-wiki;/elogind"/>
|
---|
| 115 | </para>
|
---|
| 116 | </sect2>
|
---|
| 117 |
|
---|
[398b4239] | 118 | <sect2 role="kernel" id="elogind-kernel">
|
---|
| 119 | <title>Kernel Configuration</title>
|
---|
| 120 |
|
---|
| 121 | <para>
|
---|
| 122 | Enable the following options in the kernel configuration and recompile the
|
---|
| 123 | kernel if necessary:
|
---|
| 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <!-- Spaces are significant in <screen> sections -->
|
---|
| 127 | <screen><literal>General setup --->
|
---|
| 128 | [*] Control Group support [CONFIG_CGROUPS]
|
---|
| 129 | File systems --->
|
---|
[6735113] | 130 | [*] Inotify support for userspace [CONFIG_INOTIFY_USER]
|
---|
| 131 | Pseudo filesystems --->
|
---|
| 132 | [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</literal></screen>
|
---|
[398b4239] | 133 |
|
---|
| 134 | <indexterm zone="elogind elogind-kernel">
|
---|
| 135 | <primary sortas="d-elogind">elogind</primary>
|
---|
| 136 | </indexterm>
|
---|
| 137 | </sect2>
|
---|
| 138 |
|
---|
[ff3264f] | 139 | <sect2 role="installation">
|
---|
| 140 | <title>Installation of elogind</title>
|
---|
| 141 |
|
---|
[1ede364c] | 142 | <para>
|
---|
| 143 | First fix an issue with reading a session file:
|
---|
| 144 | </para>
|
---|
| 145 |
|
---|
| 146 | <screen><userinput>sed -e '/dirent-util/a #include "env-file.h"' \
|
---|
| 147 | -e '/sessions/{n;n;s/=.*$/= parse_env_file (NULL, p, "UID", \&s);/}' \
|
---|
| 148 | -i src/basic/cgroup-util.c</userinput></screen>
|
---|
| 149 |
|
---|
[ff3264f] | 150 | <para>
|
---|
| 151 | Install <application>elogind</application> by running the following
|
---|
| 152 | commands:
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
| 155 | <screen><userinput>mkdir build &&
|
---|
[488cea3] | 156 | cd build &&
|
---|
[ff3264f] | 157 |
|
---|
| 158 | meson --prefix=/usr \
|
---|
| 159 | --sysconfdir=/etc \
|
---|
| 160 | --localstatedir=/var \
|
---|
| 161 | -Dcgroup-controller=elogind \
|
---|
| 162 | -Ddbuspolicydir=/etc/dbus-1/system.d \
|
---|
| 163 | .. &&
|
---|
| 164 | ninja</userinput></screen>
|
---|
| 165 |
|
---|
| 166 | <para>
|
---|
| 167 | This package does not come with a test suite.
|
---|
| 168 | </para>
|
---|
| 169 |
|
---|
| 170 | <para>
|
---|
| 171 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 172 | </para>
|
---|
| 173 |
|
---|
[1ede364c] | 174 | <screen role="root"><userinput>ninja install &&
|
---|
[ff3264f] | 175 | ln -sfv libelogind.pc /usr/lib/pkgconfig/libsystemd.pc &&
|
---|
| 176 | ln -sfvn elogind /usr/include/systemd</userinput></screen>
|
---|
| 177 |
|
---|
| 178 | </sect2>
|
---|
| 179 |
|
---|
| 180 | <sect2 role="commands">
|
---|
| 181 | <title>Command Explanations</title>
|
---|
| 182 |
|
---|
| 183 | <para>
|
---|
| 184 | <parameter>-Dcgroup-controller=elogind</parameter>: This switch ensures
|
---|
| 185 | that <application>elogind</application> is selected as the cgroup
|
---|
| 186 | controller, even if booted with another running cgroup controller.
|
---|
| 187 | </para>
|
---|
| 188 |
|
---|
| 189 | <para>
|
---|
| 190 | <parameter>-Ddbuspolicydir=/etc/dbus-1/system.d</parameter>: This switch
|
---|
| 191 | sets the location of the <application>D-Bus</application> policy
|
---|
| 192 | directory.
|
---|
| 193 | </para>
|
---|
| 194 |
|
---|
| 195 | <para>
|
---|
| 196 | <command>ln -s ...</command>: These commands install symlinks so that
|
---|
| 197 | software packages find systemd compatible library and headers.
|
---|
| 198 | </para>
|
---|
| 199 |
|
---|
| 200 | </sect2>
|
---|
| 201 |
|
---|
| 202 | <sect2 role="configuration">
|
---|
| 203 | <title>Configuring elogind</title>
|
---|
| 204 |
|
---|
| 205 | <para>
|
---|
[cdb3add2] | 206 | Each user will need to register a user session using
|
---|
| 207 | <application>Linux-PAM</application> at login. The
|
---|
| 208 | <filename>/etc/pam.d/system-session</filename> file needs to
|
---|
[ff3264f] | 209 | be modified and a new file needs to be created in order for
|
---|
| 210 | <command>elogind</command> to work correctly. Run the following
|
---|
| 211 | commands as the <systemitem class="username">root</systemitem> user:
|
---|
| 212 | </para>
|
---|
| 213 |
|
---|
| 214 | <screen role="root"><userinput>cat >> /etc/pam.d/system-session << "EOF" &&
|
---|
| 215 | <literal># Begin elogind addition
|
---|
| 216 |
|
---|
| 217 | session required pam_loginuid.so
|
---|
| 218 | session optional pam_elogind.so
|
---|
| 219 |
|
---|
| 220 | # End elogind addition</literal>
|
---|
| 221 | EOF
|
---|
| 222 | cat > /etc/pam.d/elogind-user << "EOF"
|
---|
| 223 | <literal># Begin /etc/pam.d/elogind-user
|
---|
| 224 |
|
---|
| 225 | account required pam_access.so
|
---|
| 226 | account include system-account
|
---|
| 227 |
|
---|
| 228 | session required pam_env.so
|
---|
| 229 | session required pam_limits.so
|
---|
| 230 | session required pam_unix.so
|
---|
| 231 | session required pam_loginuid.so
|
---|
| 232 | session optional pam_keyinit.so force revoke
|
---|
| 233 | session optional pam_elogind.so
|
---|
| 234 |
|
---|
| 235 | auth required pam_deny.so
|
---|
| 236 | password required pam_deny.so
|
---|
| 237 |
|
---|
| 238 | # End /etc/pam.d/elogind-user</literal>
|
---|
| 239 | EOF</userinput></screen>
|
---|
| 240 |
|
---|
| 241 | </sect2>
|
---|
| 242 |
|
---|
| 243 | <sect2 role="content" revision="sysv">
|
---|
| 244 | <title>Contents</title>
|
---|
| 245 |
|
---|
| 246 | <segmentedlist>
|
---|
| 247 | <segtitle>Installed Programs</segtitle>
|
---|
| 248 | <segtitle>Installed Library</segtitle>
|
---|
| 249 | <segtitle>Installed Directories</segtitle>
|
---|
| 250 |
|
---|
| 251 | <seglistitem>
|
---|
| 252 | <seg>
|
---|
| 253 | busctl,
|
---|
| 254 | elogind-inhibit, and
|
---|
| 255 | loginctl
|
---|
| 256 | </seg>
|
---|
| 257 | <seg>
|
---|
| 258 | libelogind.so
|
---|
| 259 | </seg>
|
---|
| 260 | <seg>
|
---|
[1ede364c] | 261 | /lib/elogind,
|
---|
[ff3264f] | 262 | /etc/elogind,
|
---|
| 263 | /usr/include/elogind, and
|
---|
| 264 | /usr/share/doc/elogind-&elogind-version;
|
---|
| 265 | </seg>
|
---|
| 266 | </seglistitem>
|
---|
| 267 | </segmentedlist>
|
---|
| 268 |
|
---|
| 269 | <variablelist>
|
---|
| 270 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 271 | <?dbfo list-presentation="list"?>
|
---|
| 272 | <?dbhtml list-presentation="table"?>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="busctl">
|
---|
| 275 | <term><command>busctl</command></term>
|
---|
| 276 | <listitem>
|
---|
| 277 | <para>
|
---|
| 278 | is used to introspect and monitor the D-Bus bus.
|
---|
| 279 | </para>
|
---|
| 280 | <indexterm zone="elogind busctl">
|
---|
| 281 | <primary sortas="b-busctl">busctl</primary>
|
---|
| 282 | </indexterm>
|
---|
| 283 | </listitem>
|
---|
| 284 | </varlistentry>
|
---|
| 285 |
|
---|
| 286 | <varlistentry id="elogind-inhibit">
|
---|
| 287 | <term><command>elogind-inhibit</command></term>
|
---|
| 288 | <listitem>
|
---|
| 289 | <para>
|
---|
| 290 | is used to execute a program with a shutdown, sleep or idle
|
---|
| 291 | inhibitor lock taken.
|
---|
| 292 | </para>
|
---|
| 293 | <indexterm zone="elogind elogind-inhibit">
|
---|
| 294 | <primary sortas="b-elogind-inhibit">elogind-inhibit</primary>
|
---|
| 295 | </indexterm>
|
---|
| 296 | </listitem>
|
---|
| 297 | </varlistentry>
|
---|
| 298 |
|
---|
| 299 | <varlistentry id="loginctl">
|
---|
| 300 | <term><command>loginctl</command></term>
|
---|
| 301 | <listitem>
|
---|
| 302 | <para>
|
---|
| 303 | is used to introspect and control the state of the elogind Login
|
---|
| 304 | Manager.
|
---|
| 305 | </para>
|
---|
| 306 | <indexterm zone="elogind loginctl">
|
---|
| 307 | <primary sortas="b-loginctl">loginctl</primary>
|
---|
| 308 | </indexterm>
|
---|
| 309 | </listitem>
|
---|
| 310 | </varlistentry>
|
---|
| 311 |
|
---|
| 312 | <varlistentry id="libelogind">
|
---|
| 313 | <term><filename class="libraryfile">libelogind.so</filename></term>
|
---|
| 314 | <listitem>
|
---|
| 315 | <para>
|
---|
| 316 | is the main elogind utility library.
|
---|
| 317 | </para>
|
---|
| 318 | <indexterm zone="elogind libelogind">
|
---|
| 319 | <primary sortas="c-libelogind">libelogind.so</primary>
|
---|
| 320 | </indexterm>
|
---|
| 321 | </listitem>
|
---|
| 322 | </varlistentry>
|
---|
| 323 |
|
---|
| 324 | </variablelist>
|
---|
| 325 |
|
---|
| 326 | </sect2>
|
---|
| 327 |
|
---|
| 328 | </sect1>
|
---|
| 329 |
|
---|