source: postlfs/security/polkit.xml@ cbc3f97

systemd-13485
Last change on this file since cbc3f97 was cbc3f97, checked in by DJ Lucas <dj@…>, 8 years ago

Merge chapter 14 from trunk, merge recent updates from trunk to completed chapters, more -systemd.xml files cleanup.

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

  • Property mode set to 100644
File size: 12.1 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 polkit-download-http
8 "http://www.freedesktop.org/software/polkit/releases/polkit-&polkit-version;.tar.gz">
9 <!ENTITY polkit-download-ftp " ">
10 <!ENTITY polkit-md5sum "4b77776c9e4f897dcfe03b2c34198edf">
11 <!ENTITY polkit-size "1.4 MB">
12 <!ENTITY polkit-buildsize "15 MB">
13 <!ENTITY polkit-time "0.2 SBU">
14]>
15
16<sect1 id="polkit" xreflabel="Polkit-&polkit-version;">
17 <?dbhtml filename="polkit.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
24 <title>Polkit-&polkit-version;</title>
25
26 <indexterm zone="polkit">
27 <primary sortas="a-Polkit">Polkit</primary>
28 </indexterm>
29
30 <sect2 role="package">
31 <title>Introduction to Polkit</title>
32
33 <para>
34 <application>Polkit</application> is a toolkit for defining and handling
35 authorizations. It is used for allowing unprivileged processes to
36 communicate with privileged processes.
37 </para>
38
39 &lfs78_checked;
40
41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
44 <para>
45 Download (HTTP): <ulink url="&polkit-download-http;"/>
46 </para>
47 </listitem>
48 <listitem>
49 <para>
50 Download (FTP): <ulink url="&polkit-download-ftp;"/>
51 </para>
52 </listitem>
53 <listitem>
54 <para>
55 Download MD5 sum: &polkit-md5sum;
56 </para>
57 </listitem>
58 <listitem>
59 <para>
60 Download size: &polkit-size;
61 </para>
62 </listitem>
63 <listitem>
64 <para>
65 Estimated disk space required: &polkit-buildsize;
66 </para>
67 </listitem>
68 <listitem>
69 <para>
70 Estimated build time: &polkit-time;
71 </para>
72 </listitem>
73 </itemizedlist>
74
75<!-- <bridgehead renderas="sect3">Additional Downloads</bridgehead>
76 <itemizedlist spacing="compact">
77 <listitem>
78 <para>
79 Required patch:
80 <ulink url="&patch-root;/polkit-&polkit-version;-upstream_fixes-1.patch"/>
81 </para>
82 </listitem>
83 </itemizedlist> -->
84
85 <bridgehead renderas="sect3">Polkit Dependencies</bridgehead>
86
87 <bridgehead renderas="sect4">Required</bridgehead>
88 <para role="required">
89 <xref linkend="glib2"/>, and
90 <xref linkend="JS"/>
91 </para>
92
93 <bridgehead renderas="sect4">Recommended</bridgehead>
94 <para role="recommended">
95 <xref linkend="linux-pam"/>
96 </para>
97
98 <note>
99 <para>
100 Since <command>systemd-logind</command> uses PAM to register user
101 sessions, it is a good idea to build <application>Polkit</application>
102 with PAM support so <command>systemd-logind</command> can track
103 <application>Polkit</application> sessions.
104 </para>
105 </note>
106
107 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
108 <para role="optional">
109 <xref linkend="gobject-introspection"/>
110 </para>
111
112 <bridgehead renderas="sect4">Optional</bridgehead>
113 <para role="optional">
114 <xref linkend="DocBook"/>,
115 <xref linkend="docbook-xsl"/>,
116 <xref linkend="gtk-doc"/>, and
117 <xref linkend="libxslt"/>
118 </para>
119
120 <bridgehead renderas="sect4">Required Runtime Dependencies</bridgehead>
121 <para role="required">
122 <xref linkend="systemd"/>
123 </para>
124
125 <note>
126 <para>
127 If <xref linkend="libxslt"/> is installed, then <xref linkend="DocBook"/>
128 and <xref linkend="docbook-xsl"/> are required. If you have installed
129 <xref linkend="libxslt"/>, but you do not want to install any of the
130 DocBook packages mentioned, you will need to use
131 <option>--disable-man-pages</option> in the instructions below.
132 </para>
133 </note>
134
135 <para condition="html" role="usernotes">User Notes:
136 <ulink url="&blfs-wiki;/polkit"/>
137 </para>
138 </sect2>
139
140 <sect2 role="installation">
141 <title>Installation of Polkit</title>
142
143 <para>
144 There should be a dedicated user and group to take control
145 of the <command>polkitd</command> daemon after it is
146 started. Issue the following commands as the
147 <systemitem class="username">root</systemitem> user:
148 </para>
149
150<screen role="root"><userinput>groupadd -fg 27 polkitd &amp;&amp;
151useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
152 -g polkitd -s /bin/false polkitd</userinput></screen>
153
154 <note>
155 <para>
156 When building <application>Polkit</application> with
157 <application>systemd</application> logind support, the
158 <command>configure</command> script explicitly checks if
159 system is booted using <application>systemd</application>.
160 This can cause problems if building the package in chroot,
161 where the <command>configure</command> would fail to
162 detect <application>systemd</application>. To workaround
163 the problem, simply run the following command after the
164 patch has been applied:
165 </para>
166
167<screen><userinput>sed -i "s:/sys/fs/cgroup/systemd/:/sys:g" configure</userinput></screen>
168 </note>
169
170 <para>
171 Install <application>Polkit</application> by running the following
172 commands:
173 </para>
174
175<screen><userinput>./configure --prefix=/usr \
176 --sysconfdir=/etc \
177 --localstatedir=/var \
178 --disable-static &amp;&amp;
179make</userinput></screen>
180
181 <para>
182 To test the results, issue: <command>make check</command>.
183 Note that system <application>D-Bus</application> daemon
184 must be running for the testsuite to complete. There is
185 also a warning about <application>ConsoleKit</application>
186 database not present, but that one can be safely ignored.
187 </para>
188
189 <para>
190 Now, as the <systemitem class="username">root</systemitem> user:
191 </para>
192
193<screen role="root"><userinput>make install</userinput></screen>
194
195 </sect2>
196
197 <sect2 role="commands">
198 <title>Command Explanations</title>
199
200 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
201 href="../../xincludes/static-libraries.xml"/>
202
203 <para>
204 <option>--with-authfw=shadow</option>: This switch enables the
205 package to use the <application>Shadow</application> rather than the
206 <application>Linux PAM</application> Authentication framework. Use it
207 if you have not installed <application>Linux PAM</application>.
208 </para>
209
210 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
211 href="../../xincludes/gtk-doc-rebuild.xml"/>
212
213 </sect2>
214
215 <sect2 role="configuration">
216 <title>Configuring Polkit</title>
217
218 <sect3>
219 <title>PAM Configuration</title>
220
221 <note>
222 <para>
223 If you did not build <application>Polkit</application> with
224 <application>Linux PAM</application> support, you can skip this section.
225 </para>
226 </note>
227
228 <para>
229 If you have built <application>Polkit</application> with
230 <application>Linux PAM</application> support, you need to modify
231 the default PAM configuration file which was installed by default to get
232 <application>Polkit</application> to work correctly with BLFS. Issue the
233 following commands as the <systemitem class="username">root</systemitem>
234 user to create the configuration file for <application>Linux PAM</application>:
235 </para>
236
237<screen role="root"><userinput>cat &gt; /etc/pam.d/polkit-1 &lt;&lt; "EOF"
238<literal># Begin /etc/pam.d/polkit-1
239
240auth include system-auth
241account include system-account
242password include system-password
243session include system-session
244
245# End /etc/pam.d/polkit-1</literal>
246EOF</userinput></screen>
247
248 </sect3>
249
250 </sect2>
251
252 <sect2 role="content">
253 <title>Contents</title>
254
255 <segmentedlist>
256 <segtitle>Installed Programs</segtitle>
257 <segtitle>Installed Libraries</segtitle>
258 <segtitle>Installed Directories</segtitle>
259
260 <seglistitem>
261 <seg>
262 pkaction, pkcheck, pk-example-frobnicate, pkexec,
263 pkttyagent and polkitd
264 </seg>
265 <seg>
266 libpolkit-agent-1.so and
267 libpolkit-gobject-1.so
268 </seg>
269 <seg>
270 /etc/polkit-1,
271 /usr/include/polkit-1,
272 /usr/lib/polkit-1,
273 /usr/share/gtk-doc/html/polkit-1 and
274 /usr/share/polkit-1
275 </seg>
276 </seglistitem>
277 </segmentedlist>
278
279 <variablelist>
280 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
281 <?dbfo list-presentation="list"?>
282 <?dbhtml list-presentation="table"?>
283
284 <varlistentry id="pkaction">
285 <term><command>pkaction</command></term>
286 <listitem>
287 <para>
288 is used to obtain information about registered PolicyKit actions.
289 </para>
290 <indexterm zone="polkit pkaction">
291 <primary sortas="b-pkaction">pkaction</primary>
292 </indexterm>
293 </listitem>
294 </varlistentry>
295
296 <varlistentry id="pkcheck">
297 <term><command>pkcheck</command></term>
298 <listitem>
299 <para>
300 is used to check whether a process is authorized for action.
301 </para>
302 <indexterm zone="polkit pkcheck">
303 <primary sortas="b-pkcheck">pkcheck</primary>
304 </indexterm>
305 </listitem>
306 </varlistentry>
307
308 <varlistentry id="pk-example-frobnicate">
309 <term><command>pk-example-frobnicate</command></term>
310 <listitem>
311 <para>
312 is an example program to test the <command>pkexec</command>
313 command.
314 </para>
315 <indexterm zone="polkit pk-example-frobnicate">
316 <primary sortas="b-pk-example-frobnicate">pk-example-frobnicate</primary>
317 </indexterm>
318 </listitem>
319 </varlistentry>
320
321 <varlistentry id="pkexec">
322 <term><command>pkexec</command></term>
323 <listitem>
324 <para>
325 allows an authorized user to execute a command as another user.
326 </para>
327 <indexterm zone="polkit pkexec">
328 <primary sortas="b-pkexec">pkexec</primary>
329 </indexterm>
330 </listitem>
331 </varlistentry>
332
333 <varlistentry id="pkttyagent">
334 <term><command>pkttyagent</command></term>
335 <listitem>
336 <para>
337 is used to start a textual authentication agent for the subject.
338 </para>
339 <indexterm zone="polkit pkttyagent">
340 <primary sortas="b-pkttyagent">pkttyagent</primary>
341 </indexterm>
342 </listitem>
343 </varlistentry>
344
345 <varlistentry id="polkitd">
346 <term><command>polkitd</command></term>
347 <listitem>
348 <para>
349 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
350 service on the system message bus.
351 </para>
352 <indexterm zone="polkit polkitd">
353 <primary sortas="b-polkitd">polkitd</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="libpolkit-agent-1">
359 <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
360 <listitem>
361 <para>
362 contains the <application>Polkit</application> authentication
363 agent API functions.
364 </para>
365 <indexterm zone="polkit libpolkit-agent-1">
366 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
367 </indexterm>
368 </listitem>
369 </varlistentry>
370
371 <varlistentry id="libpolkit-gobject-1">
372 <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
373 <listitem>
374 <para>
375 contains the <application>Polkit</application> authorization API functions.
376 </para>
377 <indexterm zone="polkit libpolkit-gobject-1">
378 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
379 </indexterm>
380 </listitem>
381 </varlistentry>
382
383 </variablelist>
384
385 </sect2>
386
387</sect1>
Note: See TracBrowser for help on using the repository browser.