source: postlfs/security/consolekit.xml@ c6e23bd

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c6e23bd was c6e23bd, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Update to sddm-0.12.0.
Update to ConsolKit2-1.0.0.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16423 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.7 KB
Line 
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 consolekit-download-http "https://github.com/Consolekit2/ConsoleKit2/releases/download/1.0.0/ConsoleKit2-&consolekit-version;.tar.bz2">
8 <!ENTITY consolekit-download-ftp " ">
9 <!ENTITY consolekit-md5sum "a89382ac18c11eda349053ed37114264">
10 <!ENTITY consolekit-size "1.3 MB">
11 <!ENTITY consolekit-buildsize "13.2 MB">
12 <!ENTITY consolekit-time "0.2 SBU">
13]>
14
15<sect1 id="consolekit" xreflabel="ConsoleKit2-&consolekit-version;">
16 <?dbhtml filename="consolekit.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>ConsoleKit2-&consolekit-version;</title>
24
25 <indexterm zone="consolekit">
26 <primary sortas="a-ConsoleKit">ConsoleKit2</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to ConsoleKit</title>
31
32 <para>
33 The <application>ConsoleKit</application> package is a framework for
34 keeping track of the various users, sessions, and seats present on a system.
35 It provides a mechanism for software to react to changes of any of these
36 items or of any of the metadata associated with them.
37 </para>
38
39 &lfs78_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&consolekit-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&consolekit-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &consolekit-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &consolekit-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &consolekit-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &consolekit-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75 <bridgehead renderas="sect3">ConsoleKit Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <xref linkend="dbus-glib"/> and
80 <xref linkend="xorg7-lib"/>
81 </para>
82
83 <bridgehead renderas="sect4">Recommended</bridgehead>
84 <para role="recommended">
85 <xref linkend="linux-pam"/> and
86 <xref linkend="polkit"/>
87 </para>
88
89 <warning>
90 <para>
91 If you intend <emphasis role="strong">NOT</emphasis> to install
92 <application>polkit</application>, you will need to manually edit the
93 ConsoleKit.conf file to lock down the service. Failure to do so may be a
94 huge SECURITY HOLE.
95 </para>
96 </warning>
97
98 <bridgehead renderas="sect4">Optional</bridgehead>
99 <para role="optional">
100 <xref linkend="xmlto"/>
101 </para>
102
103 <para condition="html" role="usernotes">User Notes:
104 <ulink url="&blfs-wiki;/consolekit"/>
105 </para>
106 </sect2>
107
108 <sect2 role="installation">
109 <title>Installation of ConsoleKit</title>
110
111 <para>
112 Install <application>ConsoleKit</application> by running the following
113 commands:
114 </para>
115
116<screen><userinput>
117sh autogen.sh --prefix=/usr \
118 --sysconfdir=/etc \
119 --localstatedir=/var \
120 --enable-udev-acl \
121 --enable-pam-module \
122 --enable-polkit \
123 --with-systemdsystemunitdir=no &amp;&amp;
124make</userinput></screen>
125
126 <para>
127 This package does not come with a test suite.
128 </para>
129
130 <para>
131 Now, as the <systemitem class="username">root</systemitem> user:
132 </para>
133
134<screen role="root"><userinput>make install</userinput></screen>
135
136 </sect2>
137
138 <sect2 role="commands">
139 <title>Command Explanations</title>
140
141 <para>
142 <parameter>--enable-udev-acl</parameter>: This switch enables building of
143 the <command>udev-acl</command> tool, which is used to allow normal users
144 to access device nodes normally only accessible to
145 <systemitem class="username">root</systemitem>.
146 </para>
147
148 <para>
149 <parameter>--enable-pam-module</parameter>: This switch enables building
150 of the <application>ConsoleKit</application>
151 <application>PAM</application> module which is needed for
152 <application>ConsoleKit</application> to work correctly with
153 <application>PAM</application>. Remove if
154 <application>Linux PAM</application> is
155 <emphasis role="strong">NOT</emphasis> installed.
156 </para>
157
158 <para>
159 <parameter>--enable-polkit</parameter>: Enable PolicyKit support.
160 </para>
161
162 <para>
163 <parameter>--with-systemdsystemunitdir=no</parameter>: Disable
164 attempting to build with systemd libraries.
165 </para>
166
167 <para>
168 <option>--enable-docbook-docs</option>: Use this switch if
169 <application>xmlto</application> is installed and you wish to
170 build the API documentation.
171 </para>
172
173 </sect2>
174
175 <sect2 role="configuration">
176 <title>Configuring ConsoleKit</title>
177
178 <sect3>
179 <title>PAM Module Configuration</title>
180
181 <para>
182 If you use <application>Linux PAM</application>, it needs to be
183 configured to activate <application>ConsoleKit</application> upon user
184 login. This can be achieved by editing the
185 <filename>/etc/pam.d/system-session</filename> file as the <systemitem
186 class="username">root</systemitem> user:
187 </para>
188
189<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF"
190<literal># Begin ConsoleKit addition
191
192session optional pam_loginuid.so
193session optional pam_ck_connector.so nox11
194
195# End ConsoleKit addition</literal>
196EOF</userinput></screen>
197
198 <para>
199 You will also need a helper script that creates a file in
200 <filename class="directory">/var/run/console</filename>
201 named as the currently logged in user and that contains the
202 <application>D-Bus</application> address of the session. You
203 can create the script by running the following commands as
204 the <systemitem class="username">root</systemitem> user:
205 </para>
206
207<screen role="root"><userinput>cat &gt; /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck &lt;&lt; "EOF"
208#!/bin/sh
209TAGDIR=/var/run/console
210
211[ -n "$CK_SESSION_USER_UID" ] || exit 1
212[ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
213
214TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
215
216if [ "$1" = "session_added" ]; then
217 mkdir -p "$TAGDIR"
218 echo "$CK_SESSION_ID" &gt;&gt; "$TAGFILE"
219fi
220
221if [ "$1" = "session_removed" ] &amp;&amp; [ -e "$TAGFILE" ]; then
222 sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
223 [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
224fi
225EOF
226chmod -v 755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck</userinput></screen>
227
228 <para>
229 See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
230 configuration.
231 </para>
232
233 </sect3>
234
235 </sect2>
236
237 <sect2 role="content">
238 <title>Contents</title>
239
240 <segmentedlist>
241 <segtitle>Installed Programs</segtitle>
242 <segtitle>Installed Libraries</segtitle>
243 <segtitle>Installed Directories</segtitle>
244
245 <seglistitem>
246 <seg>
247 ck-history, ck-launch-session, ck-list-sessions,
248 ck-log-system-restart, ck-log-system-start,
249 ck-log-system-stop and console-kit-daemon
250 </seg>
251 <seg>
252 libck-connector.so and pam_ck_connector.so
253 </seg>
254 <seg>
255 /etc/ConsoleKit,
256 /usr/include/ConsoleKit,
257 /usr/lib/ConsoleKit,
258 /usr/share/doc/ConsoleKit and
259 /var/log/ConsoleKit
260 </seg>
261 </seglistitem>
262 </segmentedlist>
263
264 <variablelist>
265 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
266 <?dbfo list-presentation="list"?>
267 <?dbhtml list-presentation="table"?>
268
269
270 <varlistentry id="ck-history">
271 <term><command>ck-history</command></term>
272 <listitem>
273 <para>is a utility that provides information from the ConsoleKit
274 database about what users have logged into the system.</para>
275 <indexterm zone="consolekit ck-history">
276 <primary sortas="b-ck-history">ck-history</primary>
277 </indexterm>
278 </listitem>
279 </varlistentry>
280
281 <varlistentry id="ck-launch-session">
282 <term><command>ck-launch-session</command></term>
283 <listitem>
284 <para>is a utility for starting a command in its own ConsoleKit
285 session.
286 </para>
287 <indexterm zone="consolekit ck-launch-session">
288 <primary sortas="b-ck-launch-session">ck-launch-session</primary>
289 </indexterm>
290 </listitem>
291 </varlistentry>
292
293 <varlistentry id="ck-list-sessions">
294 <term><command>ck-list-sessions</command></term>
295 <listitem>
296 <para>list sessions with respective properties. Also good for
297 debugging purposes.</para>
298 <indexterm zone="consolekit ck-list-sessions">
299 <primary sortas="b-ck-list-sessions">ck-list-sessions</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="ck-log-system-restart">
305 <term><command>ck-log-system-restart</command></term>
306 <listitem>
307 <para>write system restart to log.</para>
308 <indexterm zone="consolekit ck-log-system-restart">
309 <primary sortas="b-ck-log-system-restart">ck-log-system-restart</primary>
310 </indexterm>
311 </listitem>
312 </varlistentry>
313
314 <varlistentry id="ck-log-system-start">
315 <term><command>ck-log-system-start</command></term>
316 <listitem>
317 <para>write system start to log.</para>
318 <indexterm zone="consolekit ck-log-system-start">
319 <primary sortas="b-ck-log-system-start">ck-log-system-start</primary>
320 </indexterm>
321 </listitem>
322 </varlistentry>
323
324 <varlistentry id="ck-log-system-stop">
325 <term><command>ck-log-system-stop</command></term>
326 <listitem>
327 <para>write system stop to log.</para>
328 <indexterm zone="consolekit ck-log-system-stop">
329 <primary sortas="b-ck-log-system-stop">ck-log-system-stop</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="console-kit-daemon">
335 <term><command>console-kit-daemon</command></term>
336 <listitem>
337 <para>is the <application>ConsoleKit</application> daemon.</para>
338 <indexterm zone="consolekit console-kit-daemon">
339 <primary sortas="b-console-kit-daemon">console-kit-daemon</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344<!-- Note (Denis): I don't know if theses programs are installed by the current version of consolekit.
345 Must be validate before uncomment
346
347 <varlistentry id="ck-collect-session-info">
348 <term><command>ck-collect-session-info</command></term>
349 <listitem>
350 <para>displays session informations about the current session.</para>
351 <indexterm zone="consolekit ck-collect-session-info">
352 <primary sortas="b-ck-collect-session-info">ck-collect-session-info</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
356
357 <varlistentry id="ck-get-x11-display-device">
358 <term><command>ck-get-x11-display-device</command></term>
359 <listitem>
360 <para>displays the x11 display device of the current session.</para>
361 <indexterm zone="consolekit ck-get-x11-display-device">
362 <primary sortas="b-ck-get-x11-display-device">ck-get-x11-display-device</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
366
367 <varlistentry id="ck-get-x11-server-pid">
368 <term><command>ck-get-x11-server-pid</command></term>
369 <listitem>
370 <para>displays the x11 server pid of the current session.</para>
371 <indexterm zone="consolekit ck-get-x11-server-pid">
372 <primary sortas="b-ck-get-x11-server-pid">ck-get-x11-server-pid</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
377 <varlistentry id="ck-system-restart">
378 <term><command>ck-system-restart</command></term>
379 <listitem>
380 <para>is the system restart script.</para>
381 <indexterm zone="consolekit ck-system-restart">
382 <primary sortas="b-ck-system-restart">ck-system-restart</primary>
383 </indexterm>
384 </listitem>
385 </varlistentry>
386
387 <varlistentry id="ck-system-stop">
388 <term><command>ck-system-stop</command></term>
389 <listitem>
390 <para>is the system stop script.</para>
391 <indexterm zone="consolekit ck-system-stop">
392 <primary sortas="b-ck-system-stop">ck-system-stop</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 <varlistentry id="libck-connector">
398 <term><filename class='libraryfile'>libck-connector.so</filename></term>
399 <listitem>
400 <para>contains functions that .....</para>
401 <indexterm zone="consolekit libck-connector">
402 <primary sortas="c-libck-connector">libck-connector.so</primary>
403 </indexterm>
404 </listitem>
405 </varlistentry>
406
407 <varlistentry id="pam_ck_connector">
408 <term><filename class='libraryfile'>pam_ck_connector.so</filename></term>
409 <listitem>
410 <para>contains functions that .....</para>
411 <indexterm zone="consolekit pam_ck_connector">
412 <primary sortas="c-pam_ck_connector">pam_ck_connector.so</primary>
413 </indexterm>
414 </listitem>
415 </varlistentry>
416-->
417 </variablelist>
418
419 </sect2>
420
421</sect1>
Note: See TracBrowser for help on using the repository browser.