source: postlfs/security/polkit.xml@ 8ee0429

systemd-13485
Last change on this file since 8ee0429 was 8ee0429, checked in by Douglas R. Reno <renodr@…>, 8 years ago

(systemd) LFS79 Tags
(systemd) Tons of GCC6 Tags

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@17471 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 &lfs79_checked;&gcc6_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:
164 </para>
165
166<screen><userinput>sed -i "s:/sys/fs/cgroup/systemd/:/sys:g" configure</userinput></screen>
167 </note>
168
169 <para>
170 Install <application>Polkit</application> by running the following
171 commands:
172 </para>
173
174<screen><userinput>./configure --prefix=/usr \
175 --sysconfdir=/etc \
176 --localstatedir=/var \
177 --disable-static &amp;&amp;
178make</userinput></screen>
179
180 <para>
181 To test the results, issue: <command>make check</command>.
182 Note that system <application>D-Bus</application> daemon
183 must be running for the testsuite to complete. There is
184 also a warning about <application>ConsoleKit</application>
185 database not present, but that one can be safely ignored.
186 </para>
187
188 <para>
189 Now, as the <systemitem class="username">root</systemitem> user:
190 </para>
191
192<screen role="root"><userinput>make install</userinput></screen>
193
194 </sect2>
195
196 <sect2 role="commands">
197 <title>Command Explanations</title>
198
199 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
200 href="../../xincludes/static-libraries.xml"/>
201
202 <para>
203 <option>--with-authfw=shadow</option>: This switch enables the
204 package to use the <application>Shadow</application> rather than the
205 <application>Linux PAM</application> Authentication framework. Use it
206 if you have not installed <application>Linux PAM</application>.
207 </para>
208
209 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
210 href="../../xincludes/gtk-doc-rebuild.xml"/>
211
212 </sect2>
213
214 <sect2 role="configuration">
215 <title>Configuring Polkit</title>
216
217 <sect3>
218 <title>PAM Configuration</title>
219
220 <note>
221 <para>
222 If you did not build <application>Polkit</application> with
223 <application>Linux PAM</application> support, you can skip this section.
224 </para>
225 </note>
226
227 <para>
228 If you have built <application>Polkit</application> with
229 <application>Linux PAM</application> support, you need to modify
230 the default PAM configuration file which was installed by default to get
231 <application>Polkit</application> to work correctly with BLFS. Issue the
232 following commands as the <systemitem class="username">root</systemitem>
233 user to create the configuration file for <application>Linux PAM</application>:
234 </para>
235
236<screen role="root"><userinput>cat &gt; /etc/pam.d/polkit-1 &lt;&lt; "EOF"
237<literal># Begin /etc/pam.d/polkit-1
238
239auth include system-auth
240account include system-account
241password include system-password
242session include system-session
243
244# End /etc/pam.d/polkit-1</literal>
245EOF</userinput></screen>
246
247 </sect3>
248
249 </sect2>
250
251 <sect2 role="content">
252 <title>Contents</title>
253
254 <segmentedlist>
255 <segtitle>Installed Programs</segtitle>
256 <segtitle>Installed Libraries</segtitle>
257 <segtitle>Installed Directories</segtitle>
258
259 <seglistitem>
260 <seg>
261 pkaction, pkcheck, pk-example-frobnicate, pkexec,
262 pkttyagent and polkitd
263 </seg>
264 <seg>
265 libpolkit-agent-1.so and
266 libpolkit-gobject-1.so
267 </seg>
268 <seg>
269 /etc/polkit-1,
270 /usr/include/polkit-1,
271 /usr/lib/polkit-1,
272 /usr/share/gtk-doc/html/polkit-1 and
273 /usr/share/polkit-1
274 </seg>
275 </seglistitem>
276 </segmentedlist>
277
278 <variablelist>
279 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
280 <?dbfo list-presentation="list"?>
281 <?dbhtml list-presentation="table"?>
282
283 <varlistentry id="pkaction">
284 <term><command>pkaction</command></term>
285 <listitem>
286 <para>
287 is used to obtain information about registered PolicyKit actions.
288 </para>
289 <indexterm zone="polkit pkaction">
290 <primary sortas="b-pkaction">pkaction</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="pkcheck">
296 <term><command>pkcheck</command></term>
297 <listitem>
298 <para>
299 is used to check whether a process is authorized for action.
300 </para>
301 <indexterm zone="polkit pkcheck">
302 <primary sortas="b-pkcheck">pkcheck</primary>
303 </indexterm>
304 </listitem>
305 </varlistentry>
306
307 <varlistentry id="pk-example-frobnicate">
308 <term><command>pk-example-frobnicate</command></term>
309 <listitem>
310 <para>
311 is an example program to test the <command>pkexec</command>
312 command.
313 </para>
314 <indexterm zone="polkit pk-example-frobnicate">
315 <primary sortas="b-pk-example-frobnicate">pk-example-frobnicate</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="pkexec">
321 <term><command>pkexec</command></term>
322 <listitem>
323 <para>
324 allows an authorized user to execute a command as another user.
325 </para>
326 <indexterm zone="polkit pkexec">
327 <primary sortas="b-pkexec">pkexec</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="pkttyagent">
333 <term><command>pkttyagent</command></term>
334 <listitem>
335 <para>
336 is used to start a textual authentication agent for the subject.
337 </para>
338 <indexterm zone="polkit pkttyagent">
339 <primary sortas="b-pkttyagent">pkttyagent</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 <varlistentry id="polkitd">
345 <term><command>polkitd</command></term>
346 <listitem>
347 <para>
348 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
349 service on the system message bus.
350 </para>
351 <indexterm zone="polkit polkitd">
352 <primary sortas="b-polkitd">polkitd</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
356
357 <varlistentry id="libpolkit-agent-1">
358 <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
359 <listitem>
360 <para>
361 contains the <application>Polkit</application> authentication
362 agent API functions.
363 </para>
364 <indexterm zone="polkit libpolkit-agent-1">
365 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 <varlistentry id="libpolkit-gobject-1">
371 <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
372 <listitem>
373 <para>
374 contains the <application>Polkit</application> authorization API functions.
375 </para>
376 <indexterm zone="polkit libpolkit-gobject-1">
377 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
378 </indexterm>
379 </listitem>
380 </varlistentry>
381
382 </variablelist>
383
384 </sect2>
385
386</sect1>
Note: See TracBrowser for help on using the repository browser.