source: postlfs/security/polkit.xml@ cbf7be5

elogind
Last change on this file since cbf7be5 was e7d893b, checked in by DJ Lucas <dj@…>, 5 years ago

Merge to HEAD 21602.

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

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