source: postlfs/security/consolekit.xml@ 663b79c2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 663b79c2 was 663b79c2, checked in by Ken Moffat <ken@…>, 10 years ago

reinstate --libexecdir= in sudo (it only contains libraries), show options to avoid /usr/libexec for people using verisons of LFS before 7.5.

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

  • Property mode set to 100644
File size: 13.2 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 "&sources-anduin-http;/c/ConsoleKit-&consolekit-version;.tar.xz">
8 <!ENTITY consolekit-download-ftp " ">
9 <!ENTITY consolekit-md5sum "6aaadf5627d2f7587aa116727e2fc1da">
10 <!ENTITY consolekit-size "356 KB">
11 <!ENTITY consolekit-buildsize "8.0 MB">
12 <!ENTITY consolekit-time "0.3 SBU">
13]>
14
15<sect1 id="consolekit" xreflabel="ConsoleKit-&consolekit-version;">
16 <?dbhtml filename="consolekit.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>ConsoleKit-&consolekit-version;</title>
24
25 <indexterm zone="consolekit">
26 <primary sortas="a-ConsoleKit">ConsoleKit</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 &lfs75_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="acl"/>,
80 <xref linkend="dbus-glib"/> and
81 <xref linkend="xorg7-lib"/>
82 </para>
83
84 <bridgehead renderas="sect4">Recommended</bridgehead>
85 <para role="recommended">
86 <xref linkend="linux-pam"/> and
87 <xref linkend="polkit"/>
88 </para>
89
90 <warning>
91 <para>
92 If you intend <emphasis role="strong">NOT</emphasis> to install
93 <application>polkit</application>, you will need to manually edit the
94 ConsoleKit.conf file to lock down the service. Failure to do so may be a
95 huge SECURITY HOLE.
96 </para>
97 </warning>
98
99 <bridgehead renderas="sect4">Optional</bridgehead>
100 <para role="optional">
101 <xref linkend="xmlto"/>
102 </para>
103
104 <para condition="html" role="usernotes">User Notes:
105 <ulink url="&blfs-wiki;/consolekit"/>
106 </para>
107 </sect2>
108
109 <sect2 role="installation">
110 <title>Installation of ConsoleKit</title>
111
112 <para>
113 Install <application>ConsoleKit</application> by running the following
114 commands:
115 </para>
116
117<screen><userinput>./configure --prefix=/usr \
118 --sysconfdir=/etc \
119 --localstatedir=/var \
120 --enable-udev-acl \
121 --enable-pam-module &amp;&amp;
122make</userinput></screen>
123
124 <para>
125 This package does not come with a test suite.
126 </para>
127
128 <para>
129 Now, as the <systemitem class="username">root</systemitem> user:
130 </para>
131
132<screen role="root"><userinput>make install</userinput></screen>
133
134 </sect2>
135
136 <sect2 role="commands">
137 <title>Command Explanations</title>
138
139 <para>
140 <option>--enable-udev-acl</option>: This switch enables building of the
141 <command>udev-acl</command> tool, which is used to allow normal users
142 to access device nodes normally only accessible to
143 <systemitem class="username">root</systemitem>.
144 </para>
145
146 <para>
147 <option>--enable-pam-module</option>: This switch enables building of the
148 <application>ConsoleKit</application> <application>PAM</application>
149 module which is needed for <application>ConsoleKit</application> to
150 work correctly with <application>PAM</application>. Remove if
151 <application>Linux PAM</application> is
152 <emphasis role="strong">NOT</emphasis> installed.
153 </para>
154
155 <para>
156 <option>--enable-docbook-docs</option>: Use this switch if
157 <application>xmlto</application> is installed and you wish to
158 build the API documentation.
159 </para>
160
161 <para><option>--libexecdir=/usr/lib/ConsoleKit</option>: This option
162 creates a <filename class="directory">ConsoleKit</filename> directory in
163 <filename class="directory">/usr/lib</filename> instead of putting the
164 program's private executables into <filename
165 class="directory">/usr/libexec</filename> in accordance with the old
166 version of the FHS used before LFS-7.5.</para>
167
168 </sect2>
169
170 <sect2 role="configuration">
171 <title>Configuring ConsoleKit</title>
172
173 <sect3>
174 <title>PAM Module Configuration</title>
175
176 <para>
177 If you use <application>Linux PAM</application> you need to
178 configure <application>Linux PAM</application> to activate
179 <application>ConsoleKit</application> upon user login.
180 This can be achieved by editing the
181 <filename>/etc/pam.d/system-session</filename> file as the
182 <systemitem class="username">root</systemitem> user:
183 </para>
184
185<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF"
186# Begin ConsoleKit addition
187
188session optional pam_loginuid.so
189session optional pam_ck_connector.so nox11
190
191# End ConsoleKit addition
192EOF</userinput></screen>
193
194 <para>
195 You will also need a helper script that creates a file in
196 <filename class="directory">/var/run/console</filename>
197 named as the currently logged in user and that contains the
198 <application>D-Bus</application> address of the session. You
199 can create the script by running the following commands as
200 the <systemitem class="username">root</systemitem> user:
201 </para>
202
203<screen role="root"><userinput>cat &gt; /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck &lt;&lt; "EOF"
204#!/bin/sh
205TAGDIR=/var/run/console
206
207[ -n "$CK_SESSION_USER_UID" ] || exit 1
208[ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
209
210TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
211
212if [ "$1" = "session_added" ]; then
213 mkdir -p "$TAGDIR"
214 echo "$CK_SESSION_ID" &gt;&gt; "$TAGFILE"
215fi
216
217if [ "$1" = "session_removed" ] &amp;&amp; [ -e "$TAGFILE" ]; then
218 sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
219 [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
220fi
221EOF
222chmod -v 755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck</userinput></screen>
223
224 <para>
225 See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
226 configuration.
227 </para>
228
229 </sect3>
230
231 </sect2>
232
233 <sect2 role="content">
234 <title>Contents</title>
235
236 <segmentedlist>
237 <segtitle>Installed Programs</segtitle>
238 <segtitle>Installed Libraries</segtitle>
239 <segtitle>Installed Directories</segtitle>
240
241 <seglistitem>
242 <seg>
243 ck-history, ck-launch-session, ck-list-sessions,
244 ck-log-system-restart, ck-log-system-start,
245 ck-log-system-stop and console-kit-daemon
246 </seg>
247 <seg>
248 libck-connector.so and pam_ck_connector.so
249 </seg>
250 <seg>
251 /etc/ConsoleKit,
252 /usr/include/ConsoleKit,
253 /usr/lib/ConsoleKit,
254 /usr/share/doc/ConsoleKit and
255 /var/log/ConsoleKit
256 </seg>
257 </seglistitem>
258 </segmentedlist>
259
260<!--
261 <variablelist>
262 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
263 <?dbfo list-presentation="list"?>
264 <?dbhtml list-presentation="table"?>
265
266 <varlistentry id="ck-history">
267 <term><command>ck-history</command></term>
268 <listitem>
269 <para>does this .....</para>
270 <indexterm zone="consolekit ck-history">
271 <primary sortas="b-ck-history">ck-history</primary>
272 </indexterm>
273 </listitem>
274 </varlistentry>
275
276 <varlistentry id="ck-launch-session">
277 <term><command>ck-launch-session</command></term>
278 <listitem>
279 <para>does this .....</para>
280 <indexterm zone="consolekit ck-launch-session">
281 <primary sortas="b-ck-launch-session">ck-launch-session</primary>
282 </indexterm>
283 </listitem>
284 </varlistentry>
285
286 <varlistentry id="ck-list-sessions">
287 <term><command>ck-list-sessions</command></term>
288 <listitem>
289 <para>does this .....</para>
290 <indexterm zone="consolekit ck-list-sessions">
291 <primary sortas="b-ck-list-sessions">ck-list-sessions</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="ck-log-system-restart">
297 <term><command>ck-log-system-restart</command></term>
298 <listitem>
299 <para>does this .....</para>
300 <indexterm zone="consolekit ck-log-system-restart">
301 <primary sortas="b-ck-log-system-restart">ck-log-system-restart</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="ck-log-system-start">
307 <term><command>ck-log-system-start</command></term>
308 <listitem>
309 <para>does this .....</para>
310 <indexterm zone="consolekit ck-log-system-start">
311 <primary sortas="b-ck-log-system-start">ck-log-system-start</primary>
312 </indexterm>
313 </listitem>
314 </varlistentry>
315
316 <varlistentry id="ck-log-system-stop">
317 <term><command>ck-log-system-stop</command></term>
318 <listitem>
319 <para>does this .....</para>
320 <indexterm zone="consolekit ck-log-system-stop">
321 <primary sortas="b-ck-log-system-stop">ck-log-system-stop</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="console-kit-daemon">
327 <term><command>console-kit-daemon</command></term>
328 <listitem>
329 <para>is the <application>ConsoleKit</application> daemon.</para>
330 <indexterm zone="consolekit console-kit-daemon">
331 <primary sortas="b-console-kit-daemon">console-kit-daemon</primary>
332 </indexterm>
333 </listitem>
334 </varlistentry>
335
336 <varlistentry id="ck-collect-session-info">
337 <term><command>ck-collect-session-info</command></term>
338 <listitem>
339 <para>does this .....</para>
340 <indexterm zone="consolekit ck-collect-session-info">
341 <primary sortas="b-ck-collect-session-info">ck-collect-session-info</primary>
342 </indexterm>
343 </listitem>
344 </varlistentry>
345
346 <varlistentry id="ck-get-x11-display-device">
347 <term><command>ck-get-x11-display-device</command></term>
348 <listitem>
349 <para>does this .....</para>
350 <indexterm zone="consolekit ck-get-x11-display-device">
351 <primary sortas="b-ck-get-x11-display-device">ck-get-x11-display-device</primary>
352 </indexterm>
353 </listitem>
354 </varlistentry>
355
356 <varlistentry id="ck-get-x11-server-pid">
357 <term><command>ck-get-x11-server-pid</command></term>
358 <listitem>
359 <para>does this .....</para>
360 <indexterm zone="consolekit ck-get-x11-server-pid">
361 <primary sortas="b-ck-get-x11-server-pid">ck-get-x11-server-pid</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
366 <varlistentry id="ck-system-restart">
367 <term><command>ck-system-restart</command></term>
368 <listitem>
369 <para>does this .....</para>
370 <indexterm zone="consolekit ck-system-restart">
371 <primary sortas="b-ck-system-restart">ck-system-restart</primary>
372 </indexterm>
373 </listitem>
374 </varlistentry>
375
376 <varlistentry id="ck-system-stop">
377 <term><command>ck-system-stop</command></term>
378 <listitem>
379 <para>does this .....</para>
380 <indexterm zone="consolekit ck-system-stop">
381 <primary sortas="b-ck-system-stop">ck-system-stop</primary>
382 </indexterm>
383 </listitem>
384 </varlistentry>
385
386 <varlistentry id="libck-connector">
387 <term><filename class='libraryfile'>libck-connector.so</filename></term>
388 <listitem>
389 <para>contains functions that .....</para>
390 <indexterm zone="consolekit libck-connector">
391 <primary sortas="c-libck-connector">libck-connector.so</primary>
392 </indexterm>
393 </listitem>
394 </varlistentry>
395
396 <varlistentry id="pam_ck_connector">
397 <term><filename class='libraryfile'>pam_ck_connector.so</filename></term>
398 <listitem>
399 <para>contains functions that .....</para>
400 <indexterm zone="consolekit pam_ck_connector">
401 <primary sortas="c-pam_ck_connector">pam_ck_connector.so</primary>
402 </indexterm>
403 </listitem>
404 </varlistentry>
405
406 </variablelist>
407-->
408
409 </sect2>
410
411</sect1>
Note: See TracBrowser for help on using the repository browser.