source: postlfs/security/polkit.xml@ 20ef556

10.0 10.1 11.0 11.1 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 upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 20ef556 was 34fe2633, checked in by Bruce Dubbs <bdubbs@…>, 4 years ago

Update to libmypaint-1.5.0.
Update to ModemManager-1.12.6.

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

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