source: postlfs/security/consolekit.xml@ 152284d

gnome
Last change on this file since 152284d was 66598ffc, checked in by Christopher Gregory <cjg@…>, 10 years ago

Added new section to bootscript page added systemd notes to profile and consolekit pages

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/gnome@13388 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.6 KB
RevLine 
[6d32e7af]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
[8c62c89]7 <!ENTITY consolekit-download-http "&sources-anduin-http;/c/ConsoleKit-&consolekit-version;.tar.xz">
[6d32e7af]8 <!ENTITY consolekit-download-ftp " ">
[3261d55d]9 <!ENTITY consolekit-md5sum "6aaadf5627d2f7587aa116727e2fc1da">
10 <!ENTITY consolekit-size "356 KB">
11 <!ENTITY consolekit-buildsize "8.0 MB">
[4c2be438]12 <!ENTITY consolekit-time "0.3 SBU">
[6d32e7af]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
[66598ffc]32
33 <note>
34 <para>
35 Systemd users don't need to (and shouldn't) install this package since
36 it has been obsoleted by the systemd component, systemd-logind.
37 </para>
38 </note>
39
[3261d55d]40 <para>
41 The <application>ConsoleKit</application> package is a framework for
42 keeping track of the various users, sessions, and seats present on a system.
43 It provides a mechanism for software to react to changes of any of these
44 items or of any of the metadata associated with them.
45 </para>
[6d32e7af]46
[8bb9f27d]47 &lfs75_checked;
[27e62762]48
[6d32e7af]49 <bridgehead renderas="sect3">Package Information</bridgehead>
50 <itemizedlist spacing="compact">
51 <listitem>
[3261d55d]52 <para>
53 Download (HTTP): <ulink url="&consolekit-download-http;"/>
54 </para>
[6d32e7af]55 </listitem>
56 <listitem>
[3261d55d]57 <para>
58 Download (FTP): <ulink url="&consolekit-download-ftp;"/>
59 </para>
[6d32e7af]60 </listitem>
61 <listitem>
[3261d55d]62 <para>
63 Download MD5 sum: &consolekit-md5sum;
64 </para>
[6d32e7af]65 </listitem>
66 <listitem>
[3261d55d]67 <para>
68 Download size: &consolekit-size;
69 </para>
[6d32e7af]70 </listitem>
71 <listitem>
[3261d55d]72 <para>
73 Estimated disk space required: &consolekit-buildsize;
74 </para>
[6d32e7af]75 </listitem>
76 <listitem>
[3261d55d]77 <para>
78 Estimated build time: &consolekit-time;
79 </para>
[6d32e7af]80 </listitem>
81 </itemizedlist>
82
83 <bridgehead renderas="sect3">ConsoleKit Dependencies</bridgehead>
84
85 <bridgehead renderas="sect4">Required</bridgehead>
[4c2be438]86 <para role="required">
87 <xref linkend="dbus-glib"/> and
88 <xref linkend="xorg7-lib"/>
89 </para>
[6d32e7af]90
91 <bridgehead renderas="sect4">Recommended</bridgehead>
[4c2be438]92 <para role="recommended">
[0d7900a]93 <xref linkend="linux-pam"/> and
[4c2be438]94 <xref linkend="polkit"/>
95 </para>
[6d32e7af]96
97 <warning>
[3261d55d]98 <para>
99 If you intend <emphasis role="strong">NOT</emphasis> to install
100 <application>polkit</application>, you will need to manually edit the
101 ConsoleKit.conf file to lock down the service. Failure to do so may be a
102 huge SECURITY HOLE.
103 </para>
[6d32e7af]104 </warning>
105
106 <bridgehead renderas="sect4">Optional</bridgehead>
[4c2be438]107 <para role="optional">
108 <xref linkend="xmlto"/>
109 </para>
[6d32e7af]110
111 <para condition="html" role="usernotes">User Notes:
[3261d55d]112 <ulink url="&blfs-wiki;/consolekit"/>
113 </para>
[6d32e7af]114 </sect2>
115
116 <sect2 role="installation">
117 <title>Installation of ConsoleKit</title>
118
[3261d55d]119 <para>
120 Install <application>ConsoleKit</application> by running the following
121 commands:
122 </para>
[6d32e7af]123
[f82ac3f]124<screen><userinput>./configure --prefix=/usr \
[15fc6d6]125 --sysconfdir=/etc \
[3261d55d]126 --localstatedir=/var \
[15fc6d6]127 --enable-udev-acl \
[ee9bff1]128 --enable-pam-module \
129 --with-systemdsystemunitdir=no &amp;&amp;
[6d32e7af]130make</userinput></screen>
131
[3261d55d]132 <para>
133 This package does not come with a test suite.
134 </para>
[6d32e7af]135
[3261d55d]136 <para>
137 Now, as the <systemitem class="username">root</systemitem> user:
138 </para>
[6d32e7af]139
140<screen role="root"><userinput>make install</userinput></screen>
141
142 </sect2>
143
144 <sect2 role="commands">
145 <title>Command Explanations</title>
146
[3261d55d]147 <para>
148 <option>--enable-udev-acl</option>: This switch enables building of the
[bd29b3c]149 <command>udev-acl</command> tool, which is used to allow normal users
150 to access device nodes normally only accessible to
151 <systemitem class="username">root</systemitem>.
[3261d55d]152 </para>
[6d32e7af]153
[3261d55d]154 <para>
155 <option>--enable-pam-module</option>: This switch enables building of the
156 <application>ConsoleKit</application> <application>PAM</application>
157 module which is needed for <application>ConsoleKit</application> to
[0d7900a]158 work correctly with <application>PAM</application>. Remove if
159 <application>Linux PAM</application> is
[3261d55d]160 <emphasis role="strong">NOT</emphasis> installed.
161 </para>
162
163 <para>
[bd29b3c]164 <option>--enable-docbook-docs</option>: Use this switch if
[3261d55d]165 <application>xmlto</application> is installed and you wish to
166 build the API documentation.
167 </para>
[a41f643]168
[ee9bff1]169 <para>
170 <option>--with-systemdsystemunitdir=no</option>: Disable
171 attempting to build with systemd libraries.
172 </para>
173<!--
174 <para><option>- -libexecdir=/usr/lib/ConsoleKit</option>: This option
[663b79c2]175 creates a <filename class="directory">ConsoleKit</filename> directory in
176 <filename class="directory">/usr/lib</filename> instead of putting the
177 program's private executables into <filename
178 class="directory">/usr/libexec</filename> in accordance with the old
179 version of the FHS used before LFS-7.5.</para>
[ee9bff1]180-->
[6d32e7af]181 </sect2>
182
183 <sect2 role="configuration">
184 <title>Configuring ConsoleKit</title>
185
[3261d55d]186 <sect3>
187 <title>PAM Module Configuration</title>
[0d7900a]188
[3261d55d]189 <para>
190 If you use <application>Linux PAM</application> you need to
191 configure <application>Linux PAM</application> to activate
192 <application>ConsoleKit</application> upon user login.
[0d7900a]193 This can be achieved by editing the
194 <filename>/etc/pam.d/system-session</filename> file as the
[3261d55d]195 <systemitem class="username">root</systemitem> user:
196 </para>
[0d7900a]197
[e40b79b6]198<screen role="root"><userinput>cat &gt;&gt; /etc/pam.d/system-session &lt;&lt; "EOF"
[d7bfbad]199# Begin ConsoleKit addition
[8d86c672]200
201session optional pam_loginuid.so
[d7bfbad]202session optional pam_ck_connector.so nox11
[8d86c672]203
[d7bfbad]204# End ConsoleKit addition
[8d86c672]205EOF</userinput></screen>
[3261d55d]206
207 <para>
[bd29b3c]208 You will also need a helper script that creates a file in
[3261d55d]209 <filename class="directory">/var/run/console</filename>
[bd29b3c]210 named as the currently logged in user and that contains the
[128e1b3]211 <application>D-Bus</application> address of the session. You
212 can create the script by running the following commands as
213 the <systemitem class="username">root</systemitem> user:
[3261d55d]214 </para>
215
216<screen role="root"><userinput>cat &gt; /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck &lt;&lt; "EOF"
217#!/bin/sh
218TAGDIR=/var/run/console
219
220[ -n "$CK_SESSION_USER_UID" ] || exit 1
221[ "$CK_SESSION_IS_LOCAL" = "true" ] || exit 0
222
223TAGFILE="$TAGDIR/`getent passwd $CK_SESSION_USER_UID | cut -f 1 -d:`"
224
225if [ "$1" = "session_added" ]; then
226 mkdir -p "$TAGDIR"
227 echo "$CK_SESSION_ID" &gt;&gt; "$TAGFILE"
228fi
229
230if [ "$1" = "session_removed" ] &amp;&amp; [ -e "$TAGFILE" ]; then
231 sed -i "\%^$CK_SESSION_ID\$%d" "$TAGFILE"
232 [ -s "$TAGFILE" ] || rm -f "$TAGFILE"
233fi
234EOF
[c80a9df]235chmod -v 755 /usr/lib/ConsoleKit/run-session.d/pam-foreground-compat.ck</userinput></screen>
[3261d55d]236
237 <para>
238 See /usr/share/doc/ConsoleKit/spec/ConsoleKit.html for more
239 configuration.
240 </para>
[6d32e7af]241
242 </sect3>
243
244 </sect2>
245
246 <sect2 role="content">
247 <title>Contents</title>
248
249 <segmentedlist>
250 <segtitle>Installed Programs</segtitle>
251 <segtitle>Installed Libraries</segtitle>
252 <segtitle>Installed Directories</segtitle>
253
254 <seglistitem>
[3261d55d]255 <seg>
256 ck-history, ck-launch-session, ck-list-sessions,
257 ck-log-system-restart, ck-log-system-start,
258 ck-log-system-stop and console-kit-daemon
259 </seg>
260 <seg>
261 libck-connector.so and pam_ck_connector.so
262 </seg>
263 <seg>
264 /etc/ConsoleKit,
265 /usr/include/ConsoleKit,
266 /usr/lib/ConsoleKit,
267 /usr/share/doc/ConsoleKit and
268 /var/log/ConsoleKit
269 </seg>
[6d32e7af]270 </seglistitem>
271 </segmentedlist>
272
273 <variablelist>
274 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
275 <?dbfo list-presentation="list"?>
276 <?dbhtml list-presentation="table"?>
277
[7715803]278<!--
[6d32e7af]279 <varlistentry id="ck-history">
280 <term><command>ck-history</command></term>
281 <listitem>
282 <para>does this .....</para>
283 <indexterm zone="consolekit ck-history">
284 <primary sortas="b-ck-history">ck-history</primary>
285 </indexterm>
286 </listitem>
287 </varlistentry>
288
289 <varlistentry id="ck-launch-session">
290 <term><command>ck-launch-session</command></term>
291 <listitem>
292 <para>does this .....</para>
293 <indexterm zone="consolekit ck-launch-session">
294 <primary sortas="b-ck-launch-session">ck-launch-session</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
[7715803]298-->
[6d32e7af]299
300 <varlistentry id="ck-list-sessions">
301 <term><command>ck-list-sessions</command></term>
302 <listitem>
[7715803]303 <para>list sessions with respective properties. Also good for
304 debugging purposes.</para>
[6d32e7af]305 <indexterm zone="consolekit ck-list-sessions">
306 <primary sortas="b-ck-list-sessions">ck-list-sessions</primary>
307 </indexterm>
308 </listitem>
309 </varlistentry>
[7715803]310<!--
[6d32e7af]311 <varlistentry id="ck-log-system-restart">
312 <term><command>ck-log-system-restart</command></term>
313 <listitem>
314 <para>does this .....</para>
315 <indexterm zone="consolekit ck-log-system-restart">
316 <primary sortas="b-ck-log-system-restart">ck-log-system-restart</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="ck-log-system-start">
322 <term><command>ck-log-system-start</command></term>
323 <listitem>
324 <para>does this .....</para>
325 <indexterm zone="consolekit ck-log-system-start">
326 <primary sortas="b-ck-log-system-start">ck-log-system-start</primary>
327 </indexterm>
328 </listitem>
329 </varlistentry>
330
331 <varlistentry id="ck-log-system-stop">
332 <term><command>ck-log-system-stop</command></term>
333 <listitem>
334 <para>does this .....</para>
335 <indexterm zone="consolekit ck-log-system-stop">
336 <primary sortas="b-ck-log-system-stop">ck-log-system-stop</primary>
337 </indexterm>
338 </listitem>
339 </varlistentry>
340
341 <varlistentry id="console-kit-daemon">
342 <term><command>console-kit-daemon</command></term>
343 <listitem>
344 <para>is the <application>ConsoleKit</application> daemon.</para>
345 <indexterm zone="consolekit console-kit-daemon">
346 <primary sortas="b-console-kit-daemon">console-kit-daemon</primary>
347 </indexterm>
348 </listitem>
349 </varlistentry>
350
351 <varlistentry id="ck-collect-session-info">
352 <term><command>ck-collect-session-info</command></term>
353 <listitem>
354 <para>does this .....</para>
355 <indexterm zone="consolekit ck-collect-session-info">
356 <primary sortas="b-ck-collect-session-info">ck-collect-session-info</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="ck-get-x11-display-device">
362 <term><command>ck-get-x11-display-device</command></term>
363 <listitem>
364 <para>does this .....</para>
365 <indexterm zone="consolekit ck-get-x11-display-device">
366 <primary sortas="b-ck-get-x11-display-device">ck-get-x11-display-device</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="ck-get-x11-server-pid">
372 <term><command>ck-get-x11-server-pid</command></term>
373 <listitem>
374 <para>does this .....</para>
375 <indexterm zone="consolekit ck-get-x11-server-pid">
376 <primary sortas="b-ck-get-x11-server-pid">ck-get-x11-server-pid</primary>
377 </indexterm>
378 </listitem>
379 </varlistentry>
380
381 <varlistentry id="ck-system-restart">
382 <term><command>ck-system-restart</command></term>
383 <listitem>
384 <para>does this .....</para>
385 <indexterm zone="consolekit ck-system-restart">
386 <primary sortas="b-ck-system-restart">ck-system-restart</primary>
387 </indexterm>
388 </listitem>
389 </varlistentry>
390
391 <varlistentry id="ck-system-stop">
392 <term><command>ck-system-stop</command></term>
393 <listitem>
394 <para>does this .....</para>
395 <indexterm zone="consolekit ck-system-stop">
396 <primary sortas="b-ck-system-stop">ck-system-stop</primary>
397 </indexterm>
398 </listitem>
399 </varlistentry>
400
401 <varlistentry id="libck-connector">
402 <term><filename class='libraryfile'>libck-connector.so</filename></term>
403 <listitem>
404 <para>contains functions that .....</para>
405 <indexterm zone="consolekit libck-connector">
406 <primary sortas="c-libck-connector">libck-connector.so</primary>
407 </indexterm>
408 </listitem>
409 </varlistentry>
410
411 <varlistentry id="pam_ck_connector">
412 <term><filename class='libraryfile'>pam_ck_connector.so</filename></term>
413 <listitem>
414 <para>contains functions that .....</para>
415 <indexterm zone="consolekit pam_ck_connector">
416 <primary sortas="c-pam_ck_connector">pam_ck_connector.so</primary>
417 </indexterm>
418 </listitem>
419 </varlistentry>
420-->
[7715803]421 </variablelist>
[6d32e7af]422
423 </sect2>
424
425</sect1>
Note: See TracBrowser for help on using the repository browser.