source: postlfs/security/consolekit.xml@ 3261d55d

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 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 3261d55d was 3261d55d, checked in by Krejzi <krejzi@…>, 12 years ago

Update to ConsoleKit 0.4.6 git snapshot in order to get udev-acl tool which was removed from udev 182+ and really fix it's behaviour.

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