source: postlfs/security/polkit.xml@ 4483a9a

11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk xry111/intltool xry111/llvm18 xry111/soup3 xry111/xf86-video-removal
Last change on this file since 4483a9a 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
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 "https://www.freedesktop.org/software/polkit/releases/polkit-&polkit-version;.tar.gz">
8 <!ENTITY polkit-download-ftp " ">
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)">
13]>
14
15<sect1 id="polkit" xreflabel="Polkit-&polkit-version;">
16 <?dbhtml filename="polkit.html"?>
17
18 <sect1info>
19 <date>$Date$</date>
20 </sect1info>
21
22 <title>Polkit-&polkit-version;</title>
23
24 <indexterm zone="polkit">
25 <primary sortas="a-Polkit">Polkit</primary>
26 </indexterm>
27
28 <sect2 role="package">
29 <title>Introduction to Polkit</title>
30
31 <para>
32 <application>Polkit</application> is a toolkit for defining and handling
33 authorizations. It is used for allowing unprivileged processes to
34 communicate with privileged processes.
35 </para>
36
37 &lfs111_checked;
38
39 <bridgehead renderas="sect3">Package Information</bridgehead>
40 <itemizedlist spacing="compact">
41 <listitem>
42 <para>
43 Download (HTTP): <ulink url="&polkit-download-http;"/>
44 </para>
45 </listitem>
46 <listitem>
47 <para>
48 Download (FTP): <ulink url="&polkit-download-ftp;"/>
49 </para>
50 </listitem>
51 <listitem>
52 <para>
53 Download MD5 sum: &polkit-md5sum;
54 </para>
55 </listitem>
56 <listitem>
57 <para>
58 Download size: &polkit-size;
59 </para>
60 </listitem>
61 <listitem>
62 <para>
63 Estimated disk space required: &polkit-buildsize;
64 </para>
65 </listitem>
66 <listitem>
67 <para>
68 Estimated build time: &polkit-time;
69 </para>
70 </listitem>
71 </itemizedlist>
72
73 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
74 <itemizedlist spacing="compact">
75 <listitem>
76 <para>
77 Required patch:
78 <ulink url="&patch-root;/polkit-&polkit-version;-security_fixes-1.patch"/>
79 </para>
80 </listitem>
81 </itemizedlist>
82
83 <bridgehead renderas="sect3">Polkit Dependencies</bridgehead>
84
85 <bridgehead renderas="sect4">Required</bridgehead>
86 <para role="required">
87 <xref linkend="glib2"/> and
88 <xref linkend="js78"/>
89 </para>
90
91 <bridgehead renderas="sect4">Recommended</bridgehead>
92 <para role="recommended">
93 <xref linkend="gobject-introspection"/>,
94 <xref linkend="libxslt"/>,
95 <xref linkend="linux-pam"/>
96 <phrase revision="sysv">
97 and <xref role="first" linkend="elogind"/>
98 </phrase>
99 </para>
100
101 <note>
102 <para>
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.
110 </para>
111 </note>
112
113
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
119 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
120 <para role="optional">
121 <xref linkend="gobject-introspection"/>
122 </para>
123 -->
124
125 <bridgehead renderas="sect4">Optional</bridgehead>
126 <para role="optional">
127 <!--<xref linkend="dbus-python"/> and
128 <xref linkend="python-dbusmock"/> (for tests), and - no more tests -->
129 <!--<xref linkend="DocBook"/>, (Part of libxslt's chain)
130 <xref linkend="docbook-xsl"/>,-->
131 <xref linkend="gtk-doc"/>
132 </para>
133
134 <bridgehead renderas="sect4" revision="systemd">Required Runtime Dependencies</bridgehead>
135 <para role="required" revision="systemd">
136 <xref role="runtime" linkend="systemd"/>
137 </para>
138
139 <bridgehead renderas="sect4" id="polkit-agent" xreflabel="Polkit Authentication Agent">
140 Optional Runtime Dependencies
141 </bridgehead>
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
154 <note>
155 <para>
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
160 need to use <option>-Dman=false</option> in the instructions
161 below.
162 </para>
163 </note>
164
165 <para condition="html" role="usernotes">User Notes:
166 <ulink url="&blfs-wiki;/polkit"/>
167 </para>
168 </sect2>
169
170 <sect2 role="installation">
171 <title>Installation of Polkit</title>
172
173 <para>
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
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>
192
193 <para>
194 Apply a patch to fix two security issues:
195 </para>
196
197<screen><userinput remap="pre">patch -Np1 -i ../polkit-&polkit-version;-security_fixes-1.patch</userinput></screen>
198
199 <para>
200 Install <application>Polkit</application> by running the following
201 commands:
202 </para>
203
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>
213
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<!--
226 <para>
227 To test the results, first ensure that the system
228 <application>D-Bus</application> daemon is running.
229 Then run <command>make check</command>.
230 </para>
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>
240
241 <para>
242 Now, as the <systemitem class="username">root</systemitem> user:
243 </para>
244
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>
249
250 </sect2>
251
252 <sect2 role="commands">
253 <title>Command Explanations</title>
254
255 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
256 href="../../xincludes/meson-buildtype-release.xml"/>
257
258 <!--
259 <para revision="sysv">
260 <parameter>- -disable-libsystemd-login</parameter>: This switch forces
261 polkit to build with elogind support (if available) rather than
262 systemd-logind.
263 </para>
264
265
266 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
267 href="../../xincludes/static-libraries.xml"/>
268 -->
269
270 <para>
271 <option>-Dauthfw=shadow</option>: This switch enables the
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>.
275 </para>
276
277 <!--
278 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
279 href="../../xincludes/gtk-doc-rebuild.xml"/>
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>
302
303 </sect2>
304
305 <sect2 role="configuration">
306 <title>Configuring Polkit</title>
307
308 <sect3>
309 <title>PAM Configuration</title>
310
311 <note>
312 <para>
313 If you did not build <application>Polkit</application> with
314 <application>Linux PAM</application> support, you can skip this
315 section.
316 </para>
317 </note>
318
319 <para>
320 If you have built <application>Polkit</application> with
321 <application>Linux PAM</application> support, you need to modify
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>
325 user to create the configuration file for <application>Linux PAM</application>:
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
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>
352 <seg>
353 pkaction, pkcheck, <!--pk-example-frobnicate,--> pkexec,
354 pkttyagent and polkitd
355 </seg>
356 <seg>
357 libpolkit-agent-1.so and
358 libpolkit-gobject-1.so
359 </seg>
360 <seg>
361 /etc/polkit-1,
362 /usr/include/polkit-1,
363 /usr/lib/polkit-1,
364 /usr/share/gtk-doc/html/polkit-1 and
365 /usr/share/polkit-1
366 </seg>
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>
378 <para>
379 is used to obtain information about registered PolicyKit actions
380 </para>
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>
390 <para>
391 is used to check whether a process is authorized for action
392 </para>
393 <indexterm zone="polkit pkcheck">
394 <primary sortas="b-pkcheck">pkcheck</primary>
395 </indexterm>
396 </listitem>
397 </varlistentry>
398
399<!--
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>
405 command
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>
412-->
413
414 <varlistentry id="pkexec">
415 <term><command>pkexec</command></term>
416 <listitem>
417 <para>
418 allows an authorized user to execute a command as another user
419 </para>
420 <indexterm zone="polkit pkexec">
421 <primary sortas="b-pkexec">pkexec</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="pkttyagent">
427 <term><command>pkttyagent</command></term>
428 <listitem>
429 <para>
430 is used to start a textual authentication agent for the subject
431 </para>
432 <indexterm zone="polkit pkttyagent">
433 <primary sortas="b-pkttyagent">pkttyagent</primary>
434 </indexterm>
435 </listitem>
436 </varlistentry>
437
438 <varlistentry id="polkitd">
439 <term><command>polkitd</command></term>
440 <listitem>
441 <para>
442 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
443 service on the system message bus
444 </para>
445 <indexterm zone="polkit polkitd">
446 <primary sortas="b-polkitd">polkitd</primary>
447 </indexterm>
448 </listitem>
449 </varlistentry>
450
451 <varlistentry id="libpolkit-agent-1">
452 <term><filename class="libraryfile">libpolkit-agent-1.so</filename></term>
453 <listitem>
454 <para>
455 contains the <application>Polkit</application> authentication
456 agent API functions
457 </para>
458 <indexterm zone="polkit libpolkit-agent-1">
459 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
460 </indexterm>
461 </listitem>
462 </varlistentry>
463
464 <varlistentry id="libpolkit-gobject-1">
465 <term><filename class="libraryfile">libpolkit-gobject-1.so</filename></term>
466 <listitem>
467 <para>
468 contains the <application>Polkit</application> authorization API functions
469 </para>
470 <indexterm zone="polkit libpolkit-gobject-1">
471 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
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.