source: postlfs/security/consolekit.xml@ f82ac3f

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 f82ac3f was f82ac3f, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Archive unneeded packages

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

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