source: postlfs/security/polkit-systemd.xml@ 459c449

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

Begin merging Christophers work into systemd branch part 3.

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

  • Property mode set to 100644
File size: 10.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 &lfs75_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 <para>
145 Install <application>Polkit</application> by running the following
146 commands:
147 </para>
148
149<screen><userinput>./configure --prefix=/usr \
150 --sysconfdir=/etc \
151 --localstatedir=/var \
152 --disable-static &amp;&amp;
153make</userinput></screen>
154
155 <para>
156 To test the results, issue: <command>make check</command>.
157 Note that system <application>D-Bus</application> daemon
158 must be running for the testsuite to complete. There is
159 also a warning about <application>ConsoleKit</application>
160 database not present, but that one can be safely ignored.
161 </para>
162
163 <para>
164 Now, as the <systemitem class="username">root</systemitem> user:
165 </para>
166
167<screen role="root"><userinput>make install</userinput></screen>
168
169 </sect2>
170
171 <sect2 role="commands">
172 <title>Command Explanations</title>
173
174 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
175 href="../../xincludes/static-libraries.xml"/>
176
177 <para>
178 <option>--with-authfw=shadow</option>: This switch enables the
179 package to use the <application>Shadow</application> rather than the
180 <application>Linux PAM</application> Authentication framework. Use it
181 if you have not installed <application>Linux PAM</application>.
182 </para>
183
184 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
185 href="../../xincludes/gtk-doc-rebuild.xml"/>
186
187 </sect2>
188
189 <sect2 role="configuration">
190 <title>Configuring Polkit</title>
191
192 <sect3>
193 <title>PAM Configuration</title>
194
195 <note>
196 <para>
197 If you did not build <application>Polkit</application> with
198 <application>Linux PAM</application> support, you can skip this section.
199 </para>
200 </note>
201
202 <para>
203 If you have built <application>Polkit</application> with
204 <application>Linux PAM</application> support, you need to modify
205 the default PAM configuration file which was installed by default to get
206 <application>Polkit</application> to work correctly with BLFS. Issue the
207 following commands as the <systemitem class="username">root</systemitem>
208 user to create the configuration file for <application>Linux PAM</application>:
209 </para>
210
211<screen role="root"><userinput>cat &gt; /etc/pam.d/polkit-1 &lt;&lt; "EOF"
212<literal># Begin /etc/pam.d/polkit-1
213
214auth include system-auth
215account include system-account
216password include system-password
217session include system-session
218
219# End /etc/pam.d/polkit-1</literal>
220EOF</userinput></screen>
221
222 </sect3>
223
224 </sect2>
225
226 <sect2 role="content">
227 <title>Contents</title>
228
229 <segmentedlist>
230 <segtitle>Installed Programs</segtitle>
231 <segtitle>Installed Libraries</segtitle>
232 <segtitle>Installed Directories</segtitle>
233
234 <seglistitem>
235 <seg>
236 pkaction, pkcheck, pk-example-frobnicate, pkexec,
237 pkttyagent and polkitd
238 </seg>
239 <seg>
240 libpolkit-agent-1.so and
241 libpolkit-gobject-1.so
242 </seg>
243 <seg>
244 /etc/polkit-1,
245 /usr/include/polkit-1,
246 /usr/lib/polkit-1,
247 /usr/share/gtk-doc/html/polkit-1 and
248 /usr/share/polkit-1
249 </seg>
250 </seglistitem>
251 </segmentedlist>
252
253 <variablelist>
254 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
255 <?dbfo list-presentation="list"?>
256 <?dbhtml list-presentation="table"?>
257
258 <varlistentry id="pkaction">
259 <term><command>pkaction</command></term>
260 <listitem>
261 <para>
262 is used to obtain information about registered PolicyKit actions.
263 </para>
264 <indexterm zone="polkit pkaction">
265 <primary sortas="b-pkaction">pkaction</primary>
266 </indexterm>
267 </listitem>
268 </varlistentry>
269
270 <varlistentry id="pkcheck">
271 <term><command>pkcheck</command></term>
272 <listitem>
273 <para>
274 is used to check whether a process is authorized for action.
275 </para>
276 <indexterm zone="polkit pkcheck">
277 <primary sortas="b-pkcheck">pkcheck</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="pkexec">
283 <term><command>pkexec</command></term>
284 <listitem>
285 <para>
286 allows an authorized user to execute a command as another user.
287 </para>
288 <indexterm zone="polkit pkexec">
289 <primary sortas="b-pkexec">pkexec</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="pkttyagent">
295 <term><command>pkttyagent</command></term>
296 <listitem>
297 <para>
298 is used to start a textual authentication agent for the subject.
299 </para>
300 <indexterm zone="polkit pkttyagent">
301 <primary sortas="b-pkttyagent">pkttyagent</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="polkitd">
307 <term><command>polkitd</command></term>
308 <listitem>
309 <para>
310 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
311 service on the system message bus.
312 </para>
313 <indexterm zone="polkit polkitd">
314 <primary sortas="b-polkitd">polkitd</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="libpolkit-agent-1">
320 <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
321 <listitem>
322 <para>
323 contains the <application>Polkit</application> authentication
324 agent API functions.
325 </para>
326 <indexterm zone="polkit libpolkit-agent-1">
327 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="libpolkit-gobject-1">
333 <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
334 <listitem>
335 <para>
336 contains the <application>Polkit</application> authorization API functions.
337 </para>
338 <indexterm zone="polkit libpolkit-gobject-1">
339 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
340 </indexterm>
341 </listitem>
342 </varlistentry>
343
344 </variablelist>
345
346 </sect2>
347
348</sect1>
Note: See TracBrowser for help on using the repository browser.