source: postlfs/security/consolekit.xml@ 332b9aeb

10.0 10.1 11.0 7.10 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 332b9aeb was 332b9aeb, checked in by Fernando de Oliveira <fernando@…>, 7 years ago

Remove --libexecdir= ... old version of the FHS used before LFS-7.5 from sevaral packages.

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

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