source: postlfs/security/polkit-systemd.xml@ 7274e6c

7.6-blfs 7.6-systemd kde5-14269 kde5-14686 systemd-13485
Last change on this file since 7274e6c was 7274e6c, checked in by Krejzi <krejzi@…>, 10 years ago

More checks.

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

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