source: postlfs/security/consolekit.xml@ 55ca115d

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 55ca115d was 55ca115d, checked in by Ken Moffat <ken@…>, 10 years ago

Remove another 5 libexecdirs.

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

  • Property mode set to 100644
File size: 12.8 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 </sect2>
162
163 <sect2 role="configuration">
164 <title>Configuring ConsoleKit</title>
165
166 <sect3>
167 <title>PAM Module Configuration</title>
168
169 <para>
170 If you use <application>Linux PAM</application> you need to
171 configure <application>Linux PAM</application> to activate
172 <application>ConsoleKit</application> upon user login.
173 This can be achieved by editing the
174 <filename>/etc/pam.d/system-session</filename> file as the
175 <systemitem class="username">root</systemitem> user:
176 </para>
177
178<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF"
179# Begin ConsoleKit addition
180
181session optional pam_loginuid.so
182session optional pam_ck_connector.so nox11
183
184# End ConsoleKit addition
185EOF</userinput></screen>
186
187 <para>
188 You will also need a helper script that creates a file in
189 <filename class="directory">/var/run/console</filename>
190 named as the currently logged in user and that contains the
191 <application>D-Bus</application> address of the session. You
192 can create the script by running the following commands as
193 the <systemitem class="username">root</systemitem> user:
194 </para>
195
196<screen role="root"><userinput>cat &gt; /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck &lt;&lt; "EOF"
197#!/bin/sh
198TAGDIR=/var/run/console
199
200[ -n "$CK_SESSION_USER_UID" ] || exit 1
201[ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
202
203TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
204
205if [ "$1" = "session_added" ]; then
206 mkdir -p "$TAGDIR"
207 echo "$CK_SESSION_ID" &gt;&gt; "$TAGFILE"
208fi
209
210if [ "$1" = "session_removed" ] &amp;&amp; [ -e "$TAGFILE" ]; then
211 sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
212 [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
213fi
214EOF
215chmod -v 755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck</userinput></screen>
216
217 <para>
218 See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
219 configuration.
220 </para>
221
222 </sect3>
223
224 </sect2>
225
226 <sect2 role="content">
227 <title>Contents</title>
228
229 <segmentedlist>
230 <segtitle>Installed Programs</segtitle>
231 <segtitle>Installed Libraries</segtitle>
232 <segtitle>Installed Directories</segtitle>
233
234 <seglistitem>
235 <seg>
236 ck-history, ck-launch-session, ck-list-sessions,
237 ck-log-system-restart, ck-log-system-start,
238 ck-log-system-stop and console-kit-daemon
239 </seg>
240 <seg>
241 libck-connector.so and pam_ck_connector.so
242 </seg>
243 <seg>
244 /etc/ConsoleKit,
245 /usr/include/ConsoleKit,
246 /usr/lib/ConsoleKit,
247 /usr/share/doc/ConsoleKit and
248 /var/log/ConsoleKit
249 </seg>
250 </seglistitem>
251 </segmentedlist>
252
253<!--
254 <variablelist>
255 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
256 <?dbfo list-presentation="list"?>
257 <?dbhtml list-presentation="table"?>
258
259 <varlistentry id="ck-history">
260 <term><command>ck-history</command></term>
261 <listitem>
262 <para>does this .....</para>
263 <indexterm zone="consolekit ck-history">
264 <primary sortas="b-ck-history">ck-history</primary>
265 </indexterm>
266 </listitem>
267 </varlistentry>
268
269 <varlistentry id="ck-launch-session">
270 <term><command>ck-launch-session</command></term>
271 <listitem>
272 <para>does this .....</para>
273 <indexterm zone="consolekit ck-launch-session">
274 <primary sortas="b-ck-launch-session">ck-launch-session</primary>
275 </indexterm>
276 </listitem>
277 </varlistentry>
278
279 <varlistentry id="ck-list-sessions">
280 <term><command>ck-list-sessions</command></term>
281 <listitem>
282 <para>does this .....</para>
283 <indexterm zone="consolekit ck-list-sessions">
284 <primary sortas="b-ck-list-sessions">ck-list-sessions</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="ck-log-system-restart">
290 <term><command>ck-log-system-restart</command></term>
291 <listitem>
292 <para>does this .....</para>
293 <indexterm zone="consolekit ck-log-system-restart">
294 <primary sortas="b-ck-log-system-restart">ck-log-system-restart</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="ck-log-system-start">
300 <term><command>ck-log-system-start</command></term>
301 <listitem>
302 <para>does this .....</para>
303 <indexterm zone="consolekit ck-log-system-start">
304 <primary sortas="b-ck-log-system-start">ck-log-system-start</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 <varlistentry id="ck-log-system-stop">
310 <term><command>ck-log-system-stop</command></term>
311 <listitem>
312 <para>does this .....</para>
313 <indexterm zone="consolekit ck-log-system-stop">
314 <primary sortas="b-ck-log-system-stop">ck-log-system-stop</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="console-kit-daemon">
320 <term><command>console-kit-daemon</command></term>
321 <listitem>
322 <para>is the <application>ConsoleKit</application> daemon.</para>
323 <indexterm zone="consolekit console-kit-daemon">
324 <primary sortas="b-console-kit-daemon">console-kit-daemon</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="ck-collect-session-info">
330 <term><command>ck-collect-session-info</command></term>
331 <listitem>
332 <para>does this .....</para>
333 <indexterm zone="consolekit ck-collect-session-info">
334 <primary sortas="b-ck-collect-session-info">ck-collect-session-info</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
339 <varlistentry id="ck-get-x11-display-device">
340 <term><command>ck-get-x11-display-device</command></term>
341 <listitem>
342 <para>does this .....</para>
343 <indexterm zone="consolekit ck-get-x11-display-device">
344 <primary sortas="b-ck-get-x11-display-device">ck-get-x11-display-device</primary>
345 </indexterm>
346 </listitem>
347 </varlistentry>
348
349 <varlistentry id="ck-get-x11-server-pid">
350 <term><command>ck-get-x11-server-pid</command></term>
351 <listitem>
352 <para>does this .....</para>
353 <indexterm zone="consolekit ck-get-x11-server-pid">
354 <primary sortas="b-ck-get-x11-server-pid">ck-get-x11-server-pid</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="ck-system-restart">
360 <term><command>ck-system-restart</command></term>
361 <listitem>
362 <para>does this .....</para>
363 <indexterm zone="consolekit ck-system-restart">
364 <primary sortas="b-ck-system-restart">ck-system-restart</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="ck-system-stop">
370 <term><command>ck-system-stop</command></term>
371 <listitem>
372 <para>does this .....</para>
373 <indexterm zone="consolekit ck-system-stop">
374 <primary sortas="b-ck-system-stop">ck-system-stop</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="libck-connector">
380 <term><filename class='libraryfile'>libck-connector.so</filename></term>
381 <listitem>
382 <para>contains functions that .....</para>
383 <indexterm zone="consolekit libck-connector">
384 <primary sortas="c-libck-connector">libck-connector.so</primary>
385 </indexterm>
386 </listitem>
387 </varlistentry>
388
389 <varlistentry id="pam_ck_connector">
390 <term><filename class='libraryfile'>pam_ck_connector.so</filename></term>
391 <listitem>
392 <para>contains functions that .....</para>
393 <indexterm zone="consolekit pam_ck_connector">
394 <primary sortas="c-pam_ck_connector">pam_ck_connector.so</primary>
395 </indexterm>
396 </listitem>
397 </varlistentry>
398
399 </variablelist>
400-->
401
402 </sect2>
403
404</sect1>
Note: See TracBrowser for help on using the repository browser.