source: postlfs/security/polkit.xml@ f954995

xry111/intltool
Last change on this file since f954995 was 4483a9a, checked in by Douglas R. Reno <renodr@…>, 2 years ago

Package updates and a security fix

Fix CVE-2021-4115 in Polkit
Update to cyrus-sasl-2.1.28 (Security Update)
Update to flac-1.3.4 (Security Update)
Update to seamonkey-2.53.11 (Security Update)

  • Property mode set to 100644
File size: 15.1 KB
RevLine 
[9d3d8a8]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
[f47c6a6b]7 <!ENTITY polkit-download-http "https://www.freedesktop.org/software/polkit/releases/polkit-&polkit-version;.tar.gz">
8 <!ENTITY polkit-download-ftp " ">
[59f6a1f]9 <!ENTITY polkit-md5sum "a6efe21d021fafe4191ee30331ef801c">
10 <!ENTITY polkit-size "1.6 MB">
11 <!ENTITY polkit-buildsize "12 MB">
12 <!ENTITY polkit-time "0.1 SBU (Using parallelism=4)">
[9d3d8a8]13]>
14
[01996ebb]15<sect1 id="polkit" xreflabel="Polkit-&polkit-version;">
[9d3d8a8]16 <?dbhtml filename="polkit.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
[01996ebb]22 <title>Polkit-&polkit-version;</title>
[9d3d8a8]23
24 <indexterm zone="polkit">
[01996ebb]25 <primary sortas="a-Polkit">Polkit</primary>
[9d3d8a8]26 </indexterm>
27
28 <sect2 role="package">
[01996ebb]29 <title>Introduction to Polkit</title>
[9d3d8a8]30
[b84342d6]31 <para>
[01996ebb]32 <application>Polkit</application> is a toolkit for defining and handling
[9ca304a]33 authorizations. It is used for allowing unprivileged processes to
[30f82900]34 communicate with privileged processes.
[b84342d6]35 </para>
[9d3d8a8]36
[f1a479c7]37 &lfs111_checked;
[27e62762]38
[9d3d8a8]39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
[b84342d6]42 <para>
43 Download (HTTP): <ulink url="&polkit-download-http;"/>
44 </para>
[9d3d8a8]45 </listitem>
46 <listitem>
[b84342d6]47 <para>
48 Download (FTP): <ulink url="&polkit-download-ftp;"/>
49 </para>
[9d3d8a8]50 </listitem>
51 <listitem>
[b84342d6]52 <para>
53 Download MD5 sum: &polkit-md5sum;
54 </para>
[9d3d8a8]55 </listitem>
56 <listitem>
[b84342d6]57 <para>
58 Download size: &polkit-size;
59 </para>
[9d3d8a8]60 </listitem>
61 <listitem>
[b84342d6]62 <para>
63 Estimated disk space required: &polkit-buildsize;
64 </para>
[9d3d8a8]65 </listitem>
66 <listitem>
[b84342d6]67 <para>
68 Estimated build time: &polkit-time;
69 </para>
[9d3d8a8]70 </listitem>
71 </itemizedlist>
[ad539dbe]72
[7e280b45]73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
[ad539dbe]75 <listitem>
[4a0b346]76 <para>
[7e280b45]77 Required patch:
[4483a9a]78 <ulink url="&patch-root;/polkit-&polkit-version;-security_fixes-1.patch"/>
[4a0b346]79 </para>
80 </listitem>
[3b40dbb3]81 </itemizedlist>
[ad539dbe]82
[01996ebb]83 <bridgehead renderas="sect3">Polkit Dependencies</bridgehead>
[9d3d8a8]84
85 <bridgehead renderas="sect4">Required</bridgehead>
[bb947c32]86 <para role="required">
[6d03f3e]87 <xref linkend="glib2"/> and
[2a21b602]88 <xref linkend="js78"/>
[4c2be438]89 </para>
90
[51dfb3e]91 <bridgehead renderas="sect4">Recommended</bridgehead>
92 <para role="recommended">
[59f6a1f]93 <xref linkend="gobject-introspection"/>,
94 <xref linkend="libxslt"/>,
[6288de8]95 <xref linkend="linux-pam"/>
[7cb4635]96 <phrase revision="sysv">
[8558044]97 and <xref role="first" linkend="elogind"/>
[7cb4635]98 </phrase>
[f586237]99 </para>
100
[51dfb3e]101 <note>
[f586237]102 <para>
[51dfb3e]103 Since <phrase revision="sysv"><command>elogind</command></phrase>
104 <phrase revision="systemd"><command>systemd-logind</command></phrase>
105 uses PAM to register user sessions, it is a good idea to build
106 <application>Polkit</application> with PAM support so
107 <phrase revision="sysv"><command>elogind</command></phrase>
108 <phrase revision="systemd"><command>systemd-logind</command></phrase>
109 can track <application>Polkit</application> sessions.
[f586237]110 </para>
111 </note>
112
113
[59f6a1f]114 <!-- Due to the fact that meson will not autodetect g-i and
115 has it set to required unless you pass an option, and the likelihood
116 of users ignoring a command explanation and then sending in mails
117 regarding KDE or GNOME not working after installing polkit, let's move
118 it to recommended. See #15640 for logic
[4c2be438]119 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
120 <para role="optional">
121 <xref linkend="gobject-introspection"/>
122 </para>
[59f6a1f]123 -->
[9d3d8a8]124
125 <bridgehead renderas="sect4">Optional</bridgehead>
[bb947c32]126 <para role="optional">
[f1a479c7]127 <!--<xref linkend="dbus-python"/> and
128 <xref linkend="python-dbusmock"/> (for tests), and - no more tests -->
[59f6a1f]129 <!--<xref linkend="DocBook"/>, (Part of libxslt's chain)
130 <xref linkend="docbook-xsl"/>,-->
131 <xref linkend="gtk-doc"/>
[f586237]132 </para>
133
134 <bridgehead renderas="sect4" revision="systemd">Required Runtime Dependencies</bridgehead>
135 <para role="required" revision="systemd">
[96e9478]136 <xref role="runtime" linkend="systemd"/>
[4c2be438]137 </para>
[875b4070]138
[f13e9026]139 <bridgehead renderas="sect4" id="polkit-agent" xreflabel="Polkit Authentication Agent">
140 Optional Runtime Dependencies
141 </bridgehead>
[fee64868]142 <para role="optional">
143 One polkit authentication agent for using polkit in the graphical
144 environment:
145 <application>polkit-kde-agent</application> in
146 <xref role="runtime" linkend="plasma5-build"/> for KDE,
147 the agent built in
148 <xref role="runtime" linkend="gnome-shell"/> for GNOME3,
149 <xref role="runtime" linkend="polkit-gnome"/> for XFCE, and
150 <application>lxpolkit</application> in
151 <xref role="runtime" linkend="lxsession"/> for LXDE.
152 </para>
153
[875b4070]154 <note>
[b84342d6]155 <para>
[f586237]156 If <xref linkend="libxslt"/> is installed,
157 then <xref linkend="DocBook"/> and <xref linkend="docbook-xsl"/> are
158 required. If you have installed <xref linkend="libxslt"/>, but you do
159 not want to install any of the DocBook packages mentioned, you will
[59f6a1f]160 need to use <option>-Dman=false</option> in the instructions
[f586237]161 below.
[b84342d6]162 </para>
[875b4070]163 </note>
[9d3d8a8]164
165 <para condition="html" role="usernotes">User Notes:
[37aba7f]166 <ulink url="&blfs-wiki;/polkit"/>
167 </para>
[9d3d8a8]168 </sect2>
169
170 <sect2 role="installation">
[01996ebb]171 <title>Installation of Polkit</title>
[9d3d8a8]172
[b84342d6]173 <para>
[01996ebb]174 There should be a dedicated user and group to take control
175 of the <command>polkitd</command> daemon after it is
176 started. Issue the following commands as the
177 <systemitem class="username">root</systemitem> user:
178 </para>
179
180<screen role="root"><userinput>groupadd -fg 27 polkitd &amp;&amp;
181useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
182 -g polkitd -s /bin/false polkitd</userinput></screen>
183
[59f6a1f]184 <para>
185 First, fix problems with setting permissions during installation and with
186 meson-0.60.0:
187 </para>
188
189<screen><userinput remap="pre">sed '/0,/s/^/#/' -i meson_post_install.py &amp;&amp;
190sed '/policy,/d' -i actions/meson.build \
191 -i src/examples/meson.build</userinput></screen>
[7e280b45]192
193 <para>
[4483a9a]194 Apply a patch to fix two security issues:
[7e280b45]195 </para>
196
[4483a9a]197<screen><userinput remap="pre">patch -Np1 -i ../polkit-&polkit-version;-security_fixes-1.patch</userinput></screen>
[7e280b45]198
[01996ebb]199 <para>
200 Install <application>Polkit</application> by running the following
[37aba7f]201 commands:
[b84342d6]202 </para>
[9d3d8a8]203
[59f6a1f]204<screen revision="systemd"><userinput>mkdir build &amp;&amp;
205cd build &amp;&amp;
206
207meson --prefix=/usr \
208 -Dman=true \
209 -Dsession_tracking=libsystemd-login \
210 --buildtype=release \
211 .. &amp;&amp;
212ninja</userinput></screen>
[51dfb3e]213
[59f6a1f]214<screen revision="sysv"><userinput>mkdir build &amp;&amp;
215cd build &amp;&amp;
216
217meson --prefix=/usr \
218 -Dman=true \
219 -Dsession_tracking=libelogind \
220 -Dsystemdsystemunitdir=/tmp \
221 --buildtype=release \
222 .. &amp;&amp;
223ninja</userinput></screen>
224
225<!--
[b84342d6]226 <para>
[8558044]227 To test the results, first ensure that the system
[d9f1e46]228 <application>D-Bus</application> daemon is running.
[ad539dbe]229 Then run <command>make check</command>.
[b84342d6]230 </para>
[59f6a1f]231-->
232
233<!-- The subprojects directory which contains a wrapper for 'mocklibc'
234 is not shipped in the tarball like it should be. Whenever that is
235 fixed, -Dtests=true and ninja test is the ticket. -->
236
237 <para>
238 This package does not ship with a working test suite.
239 </para>
[9d3d8a8]240
[b84342d6]241 <para>
242 Now, as the <systemitem class="username">root</systemitem> user:
243 </para>
[9d3d8a8]244
[59f6a1f]245<screen role="root" revision="systemd"><userinput>ninja install</userinput></screen>
246
247<screen role="root" revision="sysv"><userinput>ninja install &amp;&amp;
248rm -v /tmp/*.service</userinput></screen>
[9d3d8a8]249
250 </sect2>
251
252 <sect2 role="commands">
253 <title>Command Explanations</title>
254
[7e280b45]255 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
256 href="../../xincludes/meson-buildtype-release.xml"/>
257
[59f6a1f]258 <!--
[4a0b346]259 <para revision="sysv">
[59f6a1f]260 <parameter>- -disable-libsystemd-login</parameter>: This switch forces
[4a0b346]261 polkit to build with elogind support (if available) rather than
262 systemd-logind.
263 </para>
264
[59f6a1f]265
[ad539dbe]266 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
267 href="../../xincludes/static-libraries.xml"/>
[59f6a1f]268 -->
269
[51dfb3e]270 <para>
[59f6a1f]271 <option>-Dauthfw=shadow</option>: This switch enables the
[f586237]272 package to use the <application>Shadow</application> rather than the
273 <application>Linux PAM</application> Authentication framework. Use it
274 if you have not installed <application>Linux PAM</application>.
[b84342d6]275 </para>
276
[59f6a1f]277 <!--
[e05cd03f]278 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[51dfb3e]279 href="../../xincludes/gtk-doc-rebuild.xml"/>
[59f6a1f]280 -->
281
282 <para>
283 <option>-Dintrospection=false</option>: Use this option if you are certain
284 that you do not need gobject-introspection files for polkit, or do not have
285 gobject-introspection installed.
286 </para>
287
288 <para>
289 <option>-Dman=false</option>: Use this option to disable generating and
290 installing manual pages. This is useful if libxslt is not installed.
291 </para>
292
293 <para>
294 <option>-Dexamples=true</option>: Use this option to build the example
295 programs.
296 </para>
297
298 <para>
299 <option>-Dgtk_doc=true</option>: Use this option to enable building and
300 installing the API documentation.
301 </para>
[51dfb3e]302
[9d3d8a8]303 </sect2>
304
[a6bd736]305 <sect2 role="configuration">
[01996ebb]306 <title>Configuring Polkit</title>
[a6bd736]307
308 <sect3>
309 <title>PAM Configuration</title>
310
311 <note>
[b84342d6]312 <para>
[01996ebb]313 If you did not build <application>Polkit</application> with
[ad539dbe]314 <application>Linux PAM</application> support, you can skip this
315 section.
[a6bd736]316 </para>
317 </note>
318
[b84342d6]319 <para>
[0d7900a]320 If you have built <application>Polkit</application> with
321 <application>Linux PAM</application> support, you need to modify
[9ca304a]322 the default PAM configuration file which was installed by default to get
323 <application>Polkit</application> to work correctly with BLFS. Issue the
324 following commands as the <systemitem class="username">root</systemitem>
[b84342d6]325 user to create the configuration file for <application>Linux PAM</application>:
[a6bd736]326 </para>
327
328<screen role="root"><userinput>cat &gt; /etc/pam.d/polkit-1 &lt;&lt; "EOF"
329<literal># Begin /etc/pam.d/polkit-1
330
331auth include system-auth
332account include system-account
333password include system-password
334session include system-session
335
336# End /etc/pam.d/polkit-1</literal>
337EOF</userinput></screen>
338
339 </sect3>
340
341 </sect2>
342
[9d3d8a8]343 <sect2 role="content">
344 <title>Contents</title>
345
346 <segmentedlist>
347 <segtitle>Installed Programs</segtitle>
348 <segtitle>Installed Libraries</segtitle>
349 <segtitle>Installed Directories</segtitle>
350
351 <seglistitem>
[b84342d6]352 <seg>
[59f6a1f]353 pkaction, pkcheck, <!--pk-example-frobnicate,--> pkexec,
[f342c0a9]354 pkttyagent and polkitd
[b84342d6]355 </seg>
356 <seg>
[0d7900a]357 libpolkit-agent-1.so and
[b84342d6]358 libpolkit-gobject-1.so
359 </seg>
[028759b]360 <seg>
[01996ebb]361 /etc/polkit-1,
362 /usr/include/polkit-1,
363 /usr/lib/polkit-1,
364 /usr/share/gtk-doc/html/polkit-1 and
[028759b]365 /usr/share/polkit-1
[b84342d6]366 </seg>
[9d3d8a8]367 </seglistitem>
368 </segmentedlist>
369
370 <variablelist>
371 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
372 <?dbfo list-presentation="list"?>
373 <?dbhtml list-presentation="table"?>
374
375 <varlistentry id="pkaction">
376 <term><command>pkaction</command></term>
377 <listitem>
[b84342d6]378 <para>
[4c24eb0a]379 is used to obtain information about registered PolicyKit actions
[b84342d6]380 </para>
[9d3d8a8]381 <indexterm zone="polkit pkaction">
382 <primary sortas="b-pkaction">pkaction</primary>
383 </indexterm>
384 </listitem>
385 </varlistentry>
386
387 <varlistentry id="pkcheck">
388 <term><command>pkcheck</command></term>
389 <listitem>
[b84342d6]390 <para>
[4c24eb0a]391 is used to check whether a process is authorized for action
[b84342d6]392 </para>
[9d3d8a8]393 <indexterm zone="polkit pkcheck">
394 <primary sortas="b-pkcheck">pkcheck</primary>
395 </indexterm>
396 </listitem>
397 </varlistentry>
398
[59f6a1f]399<!--
[72d90b67]400 <varlistentry id="pk-example-frobnicate">
401 <term><command>pk-example-frobnicate</command></term>
402 <listitem>
403 <para>
404 is an example program to test the <command>pkexec</command>
[4c24eb0a]405 command
[72d90b67]406 </para>
407 <indexterm zone="polkit pk-example-frobnicate">
408 <primary sortas="b-pk-example-frobnicate">pk-example-frobnicate</primary>
409 </indexterm>
410 </listitem>
411 </varlistentry>
[59f6a1f]412-->
413
[9d3d8a8]414 <varlistentry id="pkexec">
415 <term><command>pkexec</command></term>
416 <listitem>
[b84342d6]417 <para>
[4c24eb0a]418 allows an authorized user to execute a command as another user
[b84342d6]419 </para>
[9d3d8a8]420 <indexterm zone="polkit pkexec">
421 <primary sortas="b-pkexec">pkexec</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
[b84342d6]426 <varlistentry id="pkttyagent">
427 <term><command>pkttyagent</command></term>
[9d3d8a8]428 <listitem>
[b84342d6]429 <para>
[4c24eb0a]430 is used to start a textual authentication agent for the subject
[b84342d6]431 </para>
432 <indexterm zone="polkit pkttyagent">
433 <primary sortas="b-pkttyagent">pkttyagent</primary>
[9d3d8a8]434 </indexterm>
435 </listitem>
[b84342d6]436 </varlistentry>
[9d3d8a8]437
[875b4070]438 <varlistentry id="polkitd">
[9d3d8a8]439 <term><command>polkitd</command></term>
440 <listitem>
[b84342d6]441 <para>
[0d7900a]442 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
[4c24eb0a]443 service on the system message bus
[b84342d6]444 </para>
[875b4070]445 <indexterm zone="polkit polkitd">
[9d3d8a8]446 <primary sortas="b-polkitd">polkitd</primary>
447 </indexterm>
448 </listitem>
449 </varlistentry>
450
451 <varlistentry id="libpolkit-agent-1">
[4c24eb0a]452 <term><filename class="libraryfile">libpolkit-agent-1.so</filename></term>
[9d3d8a8]453 <listitem>
[b84342d6]454 <para>
[01996ebb]455 contains the <application>Polkit</application> authentication
[4c24eb0a]456 agent API functions
[b84342d6]457 </para>
[9d3d8a8]458 <indexterm zone="polkit libpolkit-agent-1">
[b84342d6]459 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
[9d3d8a8]460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="libpolkit-gobject-1">
[4c24eb0a]465 <term><filename class="libraryfile">libpolkit-gobject-1.so</filename></term>
[9d3d8a8]466 <listitem>
[b84342d6]467 <para>
[4c24eb0a]468 contains the <application>Polkit</application> authorization API functions
[b84342d6]469 </para>
[9d3d8a8]470 <indexterm zone="polkit libpolkit-gobject-1">
[b84342d6]471 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
[9d3d8a8]472 </indexterm>
473 </listitem>
474 </varlistentry>
475
476 </variablelist>
477
478 </sect2>
479
480</sect1>
Note: See TracBrowser for help on using the repository browser.