source: postlfs/security/consolekit.xml@ 108147c

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 108147c was 41c36b3, checked in by Bruce Dubbs <bdubbs@…>, 9 years ago

Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16430 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>./configure --prefix=/usr \
117 --sysconfdir=/etc \
118 --localstatedir=/var \
119 --enable-udev-acl \
120 --enable-pam-module \
121 --enable-polkit \
122 --with-systemdsystemunitdir=no &amp;&amp;
123make</userinput></screen>
124
125 <para>
126 This package does not come with a test suite.
127 </para>
128
129 <para>
130 Now, as the <systemitem class="username">root</systemitem> user:
131 </para>
132
133<screen role="root"><userinput>make install</userinput></screen>
134
135 </sect2>
136
137 <sect2 role="commands">
138 <title>Command Explanations</title>
139
140 <para>
141 <parameter>--enable-udev-acl</parameter>: This switch enables building of
142 the <command>udev-acl</command> tool, which is used to allow normal users
143 to access device nodes normally only accessible to
144 <systemitem class="username">root</systemitem>.
145 </para>
146
147 <para>
148 <parameter>--enable-pam-module</parameter>: This switch enables building
149 of the <application>ConsoleKit</application>
150 <application>PAM</application> module which is needed for
151 <application>ConsoleKit</application> to work correctly with
152 <application>PAM</application>. Remove if
153 <application>Linux PAM</application> is
154 <emphasis role="strong">NOT</emphasis> installed.
155 </para>
156
157 <para>
158 <parameter>--enable-polkit</parameter>: Enable PolicyKit support.
159 </para>
160
161 <para>
162 <parameter>--with-systemdsystemunitdir=no</parameter>: Disable
163 attempting to build with systemd libraries.
164 </para>
165
166 <para>
167 <option>--enable-docbook-docs</option>: Use this switch if
168 <application>xmlto</application> is installed and you wish to
169 build the API documentation.
170 </para>
171
172 </sect2>
173
174 <sect2 role="configuration">
175 <title>Configuring ConsoleKit</title>
176
177 <sect3>
178 <title>PAM Module Configuration</title>
179
180 <para>
181 If you use <application>Linux PAM</application>, it needs to be
182 configured to activate <application>ConsoleKit</application> upon user
183 login. This can be achieved by editing the
184 <filename>/etc/pam.d/system-session</filename> file as the <systemitem
185 class="username">root</systemitem> user:
186 </para>
187
188<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF"
189<literal># Begin ConsoleKit addition
190
191session optional pam_loginuid.so
192session optional pam_ck_connector.so nox11
193
194# End ConsoleKit addition</literal>
195EOF</userinput></screen>
196
197 <para>
198 You will also need a helper script that creates a file in
199 <filename class="directory">/var/run/console</filename>
200 named as the currently logged in user and that contains the
201 <application>D-Bus</application> address of the session. You
202 can create the script by running the following commands as
203 the <systemitem class="username">root</systemitem> user:
204 </para>
205
206<screen role="root"><userinput>cat &gt; /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck &lt;&lt; "EOF"
207#!/bin/sh
208TAGDIR=/var/run/console
209
210[ -n "$CK_SESSION_USER_UID" ] || exit 1
211[ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
212
213TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
214
215if [ "$1" = "session_added" ]; then
216 mkdir -p "$TAGDIR"
217 echo "$CK_SESSION_ID" &gt;&gt; "$TAGFILE"
218fi
219
220if [ "$1" = "session_removed" ] &amp;&amp; [ -e "$TAGFILE" ]; then
221 sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
222 [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
223fi
224EOF
225chmod -v 755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck</userinput></screen>
226
227 <para>
228 See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
229 configuration.
230 </para>
231
232 </sect3>
233
234 </sect2>
235
236 <sect2 role="content">
237 <title>Contents</title>
238
239 <segmentedlist>
240 <segtitle>Installed Programs</segtitle>
241 <segtitle>Installed Libraries</segtitle>
242 <segtitle>Installed Directories</segtitle>
243
244 <seglistitem>
245 <seg>
246 ck-history, ck-launch-session, ck-list-sessions,
247 ck-log-system-restart, ck-log-system-start,
248 ck-log-system-stop and console-kit-daemon
249 </seg>
250 <seg>
251 libck-connector.so and pam_ck_connector.so
252 </seg>
253 <seg>
254 /etc/ConsoleKit,
255 /usr/include/ConsoleKit,
256 /usr/lib/ConsoleKit,
257 /usr/share/doc/ConsoleKit and
258 /var/log/ConsoleKit
259 </seg>
260 </seglistitem>
261 </segmentedlist>
262
263 <variablelist>
264 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
265 <?dbfo list-presentation="list"?>
266 <?dbhtml list-presentation="table"?>
267
268
269 <varlistentry id="ck-history">
270 <term><command>ck-history</command></term>
271 <listitem>
272 <para>is a utility that provides information from the ConsoleKit
273 database about what users have logged into the system.</para>
274 <indexterm zone="consolekit ck-history">
275 <primary sortas="b-ck-history">ck-history</primary>
276 </indexterm>
277 </listitem>
278 </varlistentry>
279
280 <varlistentry id="ck-launch-session">
281 <term><command>ck-launch-session</command></term>
282 <listitem>
283 <para>is a utility for starting a command in its own ConsoleKit
284 session.
285 </para>
286 <indexterm zone="consolekit ck-launch-session">
287 <primary sortas="b-ck-launch-session">ck-launch-session</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="ck-list-sessions">
293 <term><command>ck-list-sessions</command></term>
294 <listitem>
295 <para>list sessions with respective properties. Also good for
296 debugging purposes.</para>
297 <indexterm zone="consolekit ck-list-sessions">
298 <primary sortas="b-ck-list-sessions">ck-list-sessions</primary>
299 </indexterm>
300 </listitem>
301 </varlistentry>
302
303 <varlistentry id="ck-log-system-restart">
304 <term><command>ck-log-system-restart</command></term>
305 <listitem>
306 <para>write system restart to log.</para>
307 <indexterm zone="consolekit ck-log-system-restart">
308 <primary sortas="b-ck-log-system-restart">ck-log-system-restart</primary>
309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="ck-log-system-start">
314 <term><command>ck-log-system-start</command></term>
315 <listitem>
316 <para>write system start to log.</para>
317 <indexterm zone="consolekit ck-log-system-start">
318 <primary sortas="b-ck-log-system-start">ck-log-system-start</primary>
319 </indexterm>
320 </listitem>
321 </varlistentry>
322
323 <varlistentry id="ck-log-system-stop">
324 <term><command>ck-log-system-stop</command></term>
325 <listitem>
326 <para>write system stop to log.</para>
327 <indexterm zone="consolekit ck-log-system-stop">
328 <primary sortas="b-ck-log-system-stop">ck-log-system-stop</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="console-kit-daemon">
334 <term><command>console-kit-daemon</command></term>
335 <listitem>
336 <para>is the <application>ConsoleKit</application> daemon.</para>
337 <indexterm zone="consolekit console-kit-daemon">
338 <primary sortas="b-console-kit-daemon">console-kit-daemon</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343<!-- Note (Denis): I don't know if theses programs are installed by the current version of consolekit.
344 Must be validate before uncomment
345
346 <varlistentry id="ck-collect-session-info">
347 <term><command>ck-collect-session-info</command></term>
348 <listitem>
349 <para>displays session informations about the current session.</para>
350 <indexterm zone="consolekit ck-collect-session-info">
351 <primary sortas="b-ck-collect-session-info">ck-collect-session-info</primary>
352 </indexterm>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry id="ck-get-x11-display-device">
357 <term><command>ck-get-x11-display-device</command></term>
358 <listitem>
359 <para>displays the x11 display device of the current session.</para>
360 <indexterm zone="consolekit ck-get-x11-display-device">
361 <primary sortas="b-ck-get-x11-display-device">ck-get-x11-display-device</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
366 <varlistentry id="ck-get-x11-server-pid">
367 <term><command>ck-get-x11-server-pid</command></term>
368 <listitem>
369 <para>displays the x11 server pid of the current session.</para>
370 <indexterm zone="consolekit ck-get-x11-server-pid">
371 <primary sortas="b-ck-get-x11-server-pid">ck-get-x11-server-pid</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="ck-system-restart">
377 <term><command>ck-system-restart</command></term>
378 <listitem>
379 <para>is the system restart script.</para>
380 <indexterm zone="consolekit ck-system-restart">
381 <primary sortas="b-ck-system-restart">ck-system-restart</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="ck-system-stop">
387 <term><command>ck-system-stop</command></term>
388 <listitem>
389 <para>is the system stop script.</para>
390 <indexterm zone="consolekit ck-system-stop">
391 <primary sortas="b-ck-system-stop">ck-system-stop</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="libck-connector">
397 <term><filename class='libraryfile'>libck-connector.so</filename></term>
398 <listitem>
399 <para>contains functions that .....</para>
400 <indexterm zone="consolekit libck-connector">
401 <primary sortas="c-libck-connector">libck-connector.so</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 <varlistentry id="pam_ck_connector">
407 <term><filename class='libraryfile'>pam_ck_connector.so</filename></term>
408 <listitem>
409 <para>contains functions that .....</para>
410 <indexterm zone="consolekit pam_ck_connector">
411 <primary sortas="c-pam_ck_connector">pam_ck_connector.so</primary>
412 </indexterm>
413 </listitem>
414 </varlistentry>
415-->
416 </variablelist>
417
418 </sect2>
419
420</sect1>
Note: See TracBrowser for help on using the repository browser.