source: postlfs/security/polkit-systemd.xml@ ac38e9dc

systemd-13485
Last change on this file since ac38e9dc was ac38e9dc, checked in by Douglas R. Reno <renodr@…>, 9 years ago

Import back into SVN from Github

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

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