source: postlfs/security/polkit.xml@ 92245989

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 92245989 was 92245989, checked in by DJ Lucas <dj@…>, 7 years ago

Merge nosym branch

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

  • Property mode set to 100644
File size: 13.0 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 &lfs7a_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">Polkit Dependencies</bridgehead>
76
77 <bridgehead renderas="sect4">Required</bridgehead>
78 <para role="required">
79 <xref linkend="glib2"/>, and
80 <xref linkend="JS"/>
81 </para>
82
83 <bridgehead renderas="sect4" revision="systemd">Recommended</bridgehead>
84 <para role="recommended" revision="systemd">
85 <xref linkend="linux-pam"/>
86 </para>
87
88 <note revision="systemd">
89 <para>
90 Since <command>systemd-logind</command> uses PAM to register user
91 sessions, it is a good idea to build <application>Polkit</application>
92 with PAM support so <command>systemd-logind</command> can track
93 <application>Polkit</application> sessions.
94 </para>
95 </note>
96
97
98 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
99 <para role="optional">
100 <xref linkend="gobject-introspection"/>
101 </para>
102
103 <bridgehead renderas="sect4">Optional</bridgehead>
104 <para role="optional">
105 <xref linkend="DocBook"/>,
106 <xref linkend="docbook-xsl"/>,
107 <xref linkend="gtk-doc"/>, <phrase revision="systemd">and </phrase>
108 <xref linkend="libxslt"/><phrase revision="sysv">, and
109 <xref linkend="linux-pam"/></phrase>
110 </para>
111
112 <bridgehead renderas="sect4" revision="systemd">Required Runtime Dependencies</bridgehead>
113 <para role="required" revision="systemd">
114 <xref linkend="systemd"/>
115 </para>
116
117 <note>
118 <para>
119 If <xref linkend="libxslt"/> is installed,
120 then <xref linkend="DocBook"/> and <xref linkend="docbook-xsl"/> are
121 required. If you have installed <xref linkend="libxslt"/>, but you do
122 not want to install any of the DocBook packages mentioned, you will
123 need to use <option>--disable-man-pages</option> in the instructions
124 below.
125 </para>
126 </note>
127
128 <para condition="html" role="usernotes">User Notes:
129 <ulink url="&blfs-wiki;/polkit"/>
130 </para>
131 </sect2>
132
133 <sect2 role="installation">
134 <title>Installation of Polkit</title>
135
136 <para>
137 There should be a dedicated user and group to take control
138 of the <command>polkitd</command> daemon after it is
139 started. Issue the following commands as the
140 <systemitem class="username">root</systemitem> user:
141 </para>
142
143<screen role="root"><userinput>groupadd -fg 27 polkitd &amp;&amp;
144useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
145 -g polkitd -s /bin/false polkitd</userinput></screen>
146
147 <note revision="systemd">
148 <para>
149 When building <application>Polkit</application> with
150 <application>systemd</application> logind support, the
151 <command>configure</command> script explicitly checks if
152 system is booted using <application>systemd</application>.
153 This can cause problems if building the package in chroot,
154 where the <command>configure</command> would fail to
155 detect <application>systemd</application>. To workaround
156 the problem, simply run the following command:
157 </para>
158
159<screen><userinput>sed -i "s:/sys/fs/cgroup/systemd/:/sys:g" configure</userinput></screen>
160 </note>
161
162 <para>
163 Install <application>Polkit</application> by running the following
164 commands:
165 </para>
166
167<screen revision="sysv"><userinput>./configure --prefix=/usr \
168 --sysconfdir=/etc \
169 --localstatedir=/var \
170 --disable-static \
171 --enable-libsystemd-login=no \
172 --with-authfw=shadow &amp;&amp;
173make</userinput></screen>
174
175<screen revision="systemd"><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 <para revision="sysv">
201 <parameter>--enable-libsystemd-login=no</parameter>: This parameter fixes
202 building without <application>systemd</application>, which is not part
203 of LFS/BLFS. If you use <application>systemd</application>,
204 replace "no" by "yes".
205 </para>
206
207 <para revision="sysv">
208 <parameter>--with-authfw=shadow</parameter>: This parameter configures the
209 package to use the <application>Shadow</application> rather than the
210 <application>Linux-PAM</application> Authentication framework. Remove it
211 if you would like to use <application>Linux-PAM</application>.
212 </para>
213
214 <para revision="systemd">
215 <option>--with-authfw=shadow</option>: This switch enables the
216 package to use the <application>Shadow</application> rather than the
217 <application>Linux PAM</application> Authentication framework. Use it
218 if you have not installed <application>Linux PAM</application>.
219 </para>
220
221 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
222 href="../../xincludes/static-libraries.xml"/>
223
224 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
225 href="../../xincludes/gtk-doc-rebuild.xml"/>
226
227 </sect2>
228
229 <sect2 role="configuration">
230 <title>Configuring Polkit</title>
231
232 <sect3>
233 <title>PAM Configuration</title>
234
235 <note>
236 <para>
237 If you did not build <application>Polkit</application> with
238 <application>Linux PAM</application> support, you can skip this section.
239 </para>
240 </note>
241
242 <para>
243 If you have built <application>Polkit</application> with
244 <application>Linux PAM</application> support, you need to modify
245 the default PAM configuration file which was installed by default to get
246 <application>Polkit</application> to work correctly with BLFS. Issue the
247 following commands as the <systemitem class="username">root</systemitem>
248 user to create the configuration file for <application>Linux PAM</application>:
249 </para>
250
251<screen role="root"><userinput>cat &gt; /etc/pam.d/polkit-1 &lt;&lt; "EOF"
252<literal># Begin /etc/pam.d/polkit-1
253
254auth include system-auth
255account include system-account
256password include system-password
257session include system-session
258
259# End /etc/pam.d/polkit-1</literal>
260EOF</userinput></screen>
261
262 </sect3>
263
264 </sect2>
265
266 <sect2 role="content">
267 <title>Contents</title>
268
269 <segmentedlist>
270 <segtitle>Installed Programs</segtitle>
271 <segtitle>Installed Libraries</segtitle>
272 <segtitle>Installed Directories</segtitle>
273
274 <seglistitem>
275 <seg>
276 pkaction, pkcheck, pk-example-frobnicate, pkexec,
277 pkttyagent and polkitd
278 </seg>
279 <seg>
280 libpolkit-agent-1.so and
281 libpolkit-gobject-1.so
282 </seg>
283 <seg>
284 /etc/polkit-1,
285 /usr/include/polkit-1,
286 /usr/lib/polkit-1,
287 /usr/share/gtk-doc/html/polkit-1 and
288 /usr/share/polkit-1
289 </seg>
290 </seglistitem>
291 </segmentedlist>
292
293 <variablelist>
294 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
295 <?dbfo list-presentation="list"?>
296 <?dbhtml list-presentation="table"?>
297
298 <varlistentry id="pkaction">
299 <term><command>pkaction</command></term>
300 <listitem>
301 <para>
302 is used to obtain information about registered PolicyKit actions.
303 </para>
304 <indexterm zone="polkit pkaction">
305 <primary sortas="b-pkaction">pkaction</primary>
306 </indexterm>
307 </listitem>
308 </varlistentry>
309
310 <varlistentry id="pkcheck">
311 <term><command>pkcheck</command></term>
312 <listitem>
313 <para>
314 is used to check whether a process is authorized for action.
315 </para>
316 <indexterm zone="polkit pkcheck">
317 <primary sortas="b-pkcheck">pkcheck</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="pk-example-frobnicate">
323 <term><command>pk-example-frobnicate</command></term>
324 <listitem>
325 <para>
326 is an example program to test the <command>pkexec</command>
327 command.
328 </para>
329 <indexterm zone="polkit pk-example-frobnicate">
330 <primary sortas="b-pk-example-frobnicate">pk-example-frobnicate</primary>
331 </indexterm>
332 </listitem>
333 </varlistentry>
334
335 <varlistentry id="pkexec">
336 <term><command>pkexec</command></term>
337 <listitem>
338 <para>
339 allows an authorized user to execute a command as another user.
340 </para>
341 <indexterm zone="polkit pkexec">
342 <primary sortas="b-pkexec">pkexec</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
346
347 <varlistentry id="pkttyagent">
348 <term><command>pkttyagent</command></term>
349 <listitem>
350 <para>
351 is used to start a textual authentication agent for the subject.
352 </para>
353 <indexterm zone="polkit pkttyagent">
354 <primary sortas="b-pkttyagent">pkttyagent</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="polkitd">
360 <term><command>polkitd</command></term>
361 <listitem>
362 <para>
363 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
364 service on the system message bus.
365 </para>
366 <indexterm zone="polkit polkitd">
367 <primary sortas="b-polkitd">polkitd</primary>
368 </indexterm>
369 </listitem>
370 </varlistentry>
371
372 <varlistentry id="libpolkit-agent-1">
373 <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
374 <listitem>
375 <para>
376 contains the <application>Polkit</application> authentication
377 agent API functions.
378 </para>
379 <indexterm zone="polkit libpolkit-agent-1">
380 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
381 </indexterm>
382 </listitem>
383 </varlistentry>
384
385 <varlistentry id="libpolkit-gobject-1">
386 <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
387 <listitem>
388 <para>
389 contains the <application>Polkit</application> authorization API functions.
390 </para>
391 <indexterm zone="polkit libpolkit-gobject-1">
392 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
393 </indexterm>
394 </listitem>
395 </varlistentry>
396
397 </variablelist>
398
399 </sect2>
400
401</sect1>
Note: See TracBrowser for help on using the repository browser.