source: postlfs/security/polkit-systemd.xml@ 8c928b4

7.6-blfs 7.6-systemd kde5-14686 systemd-13485
Last change on this file since 8c928b4 was 9800de01, checked in by Krejzi <krejzi@…>, 10 years ago

Couple of late fixes.

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

  • Property mode set to 100644
File size: 11.2 KB
RevLine 
[9d3d8a8]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
[0d7900a]7 <!ENTITY polkit-download-http
[b84342d6]8 "http://www.freedesktop.org/software/polkit/releases/polkit-&polkit-version;.tar.gz">
[9d3d8a8]9 <!ENTITY polkit-download-ftp " ">
[7e900ba6]10 <!ENTITY polkit-md5sum "b0f2fa00a55f47c6a5d88e9b73f80127">
[78e2a40]11 <!ENTITY polkit-size "1.4 MB">
12 <!ENTITY polkit-buildsize "17 MB">
[7e900ba6]13 <!ENTITY polkit-time "0.2 SBU">
[9d3d8a8]14]>
15
[01996ebb]16<sect1 id="polkit" xreflabel="Polkit-&polkit-version;">
[9d3d8a8]17 <?dbhtml filename="polkit.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
[01996ebb]24 <title>Polkit-&polkit-version;</title>
[9d3d8a8]25
26 <indexterm zone="polkit">
[01996ebb]27 <primary sortas="a-Polkit">Polkit</primary>
[9d3d8a8]28 </indexterm>
29
30 <sect2 role="package">
[01996ebb]31 <title>Introduction to Polkit</title>
[9d3d8a8]32
[b84342d6]33 <para>
[01996ebb]34 <application>Polkit</application> is a toolkit for defining and handling
[9ca304a]35 authorizations. It is used for allowing unprivileged processes to
[30f82900]36 communicate with privileged processes.
[b84342d6]37 </para>
[9d3d8a8]38
[7274e6c]39 &lfs76_checked;
[27e62762]40
[9d3d8a8]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[b84342d6]44 <para>
45 Download (HTTP): <ulink url="&polkit-download-http;"/>
46 </para>
[9d3d8a8]47 </listitem>
48 <listitem>
[b84342d6]49 <para>
50 Download (FTP): <ulink url="&polkit-download-ftp;"/>
51 </para>
[9d3d8a8]52 </listitem>
53 <listitem>
[b84342d6]54 <para>
55 Download MD5 sum: &polkit-md5sum;
56 </para>
[9d3d8a8]57 </listitem>
58 <listitem>
[b84342d6]59 <para>
60 Download size: &polkit-size;
61 </para>
[9d3d8a8]62 </listitem>
63 <listitem>
[b84342d6]64 <para>
65 Estimated disk space required: &polkit-buildsize;
66 </para>
[9d3d8a8]67 </listitem>
68 <listitem>
[b84342d6]69 <para>
70 Estimated build time: &polkit-time;
71 </para>
[9d3d8a8]72 </listitem>
73 </itemizedlist>
74
[01996ebb]75 <bridgehead renderas="sect3">Polkit Dependencies</bridgehead>
[9d3d8a8]76
77 <bridgehead renderas="sect4">Required</bridgehead>
[bb947c32]78 <para role="required">
[56605b9]79 <xref linkend="glib2"/>, and
[4cbfd95]80 <xref linkend="JS"/>
[4c2be438]81 </para>
82
[459c449]83 <bridgehead renderas="sect4">Recommended</bridgehead>
[4da2d9f]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
[4c2be438]97 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
98 <para role="optional">
99 <xref linkend="gobject-introspection"/>
100 </para>
[9d3d8a8]101
102 <bridgehead renderas="sect4">Optional</bridgehead>
[bb947c32]103 <para role="optional">
[0d7900a]104 <xref linkend="DocBook"/>,
105 <xref linkend="docbook-xsl"/>,
[4da2d9f]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)
[4c2be438]113 </para>
[875b4070]114
115 <note>
[b84342d6]116 <para>
[9ca304a]117 If <xref linkend="libxslt"/> is installed, then <xref linkend="DocBook"/>
[3bbf74c5]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.
[b84342d6]122 </para>
[875b4070]123 </note>
[9d3d8a8]124
125 <para condition="html" role="usernotes">User Notes:
[37aba7f]126 <ulink url="&blfs-wiki;/polkit"/>
127 </para>
[9d3d8a8]128 </sect2>
129
130 <sect2 role="installation">
[01996ebb]131 <title>Installation of Polkit</title>
[9d3d8a8]132
[b84342d6]133 <para>
[01996ebb]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
[5c198a0]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
[01996ebb]159 <para>
160 Install <application>Polkit</application> by running the following
[37aba7f]161 commands:
[b84342d6]162 </para>
[9d3d8a8]163
[9800de01]164<screen><userinput>./configure --prefix=/usr \
165 --sysconfdir=/etc \
166 --localstatedir=/var \
167 --disable-static &amp;&amp;
[9d3d8a8]168make</userinput></screen>
169
[b84342d6]170 <para>
[01996ebb]171 To test the results, issue: <command>make check</command>.
[3bbf74c5]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.
[b84342d6]176 </para>
[9d3d8a8]177
[b84342d6]178 <para>
179 Now, as the <systemitem class="username">root</systemitem> user:
180 </para>
[9d3d8a8]181
182<screen role="root"><userinput>make install</userinput></screen>
183
184 </sect2>
185
186 <sect2 role="commands">
187 <title>Command Explanations</title>
188
[4da2d9f]189 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
190 href="../../xincludes/static-libraries.xml"/>
[dbac0b14]191
[b84342d6]192 <para>
[4da2d9f]193 <option>--with-authfw=shadow</option>: This switch enables the
[01996ebb]194 package to use the <application>Shadow</application> rather than the
[4da2d9f]195 <application>Linux PAM</application> Authentication framework. Use it
196 if you have not installed <application>Linux PAM</application>.
[b84342d6]197 </para>
198
199 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
200 href="../../xincludes/gtk-doc-rebuild.xml"/>
[9d3d8a8]201
202 </sect2>
203
[a6bd736]204 <sect2 role="configuration">
[01996ebb]205 <title>Configuring Polkit</title>
[a6bd736]206
207 <sect3>
208 <title>PAM Configuration</title>
209
210 <note>
[b84342d6]211 <para>
[01996ebb]212 If you did not build <application>Polkit</application> with
[b84342d6]213 <application>Linux PAM</application> support, you can skip this section.
[a6bd736]214 </para>
215 </note>
216
[b84342d6]217 <para>
[0d7900a]218 If you have built <application>Polkit</application> with
219 <application>Linux PAM</application> support, you need to modify
[9ca304a]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>
[b84342d6]223 user to create the configuration file for <application>Linux PAM</application>:
[a6bd736]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
[9d3d8a8]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>
[b84342d6]250 <seg>
[f342c0a9]251 pkaction, pkcheck, pk-example-frobnicate, pkexec,
252 pkttyagent and polkitd
[b84342d6]253 </seg>
254 <seg>
[0d7900a]255 libpolkit-agent-1.so and
[b84342d6]256 libpolkit-gobject-1.so
257 </seg>
[028759b]258 <seg>
[01996ebb]259 /etc/polkit-1,
260 /usr/include/polkit-1,
261 /usr/lib/polkit-1,
262 /usr/share/gtk-doc/html/polkit-1 and
[028759b]263 /usr/share/polkit-1
[b84342d6]264 </seg>
[9d3d8a8]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>
[b84342d6]276 <para>
277 is used to obtain information about registered PolicyKit actions.
278 </para>
[9d3d8a8]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>
[b84342d6]288 <para>
289 is used to check whether a process is authorized for action.
290 </para>
[9d3d8a8]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>
[b84342d6]300 <para>
301 allows an authorized user to execute a command as another user.
302 </para>
[9d3d8a8]303 <indexterm zone="polkit pkexec">
304 <primary sortas="b-pkexec">pkexec</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
[b84342d6]309 <varlistentry id="pkttyagent">
310 <term><command>pkttyagent</command></term>
[9d3d8a8]311 <listitem>
[b84342d6]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>
[9d3d8a8]317 </indexterm>
318 </listitem>
[b84342d6]319 </varlistentry>
[9d3d8a8]320
[875b4070]321 <varlistentry id="polkitd">
[9d3d8a8]322 <term><command>polkitd</command></term>
323 <listitem>
[b84342d6]324 <para>
[0d7900a]325 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
[b84342d6]326 service on the system message bus.
327 </para>
[875b4070]328 <indexterm zone="polkit polkitd">
[9d3d8a8]329 <primary sortas="b-polkitd">polkitd</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="libpolkit-agent-1">
[b84342d6]335 <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
[9d3d8a8]336 <listitem>
[b84342d6]337 <para>
[01996ebb]338 contains the <application>Polkit</application> authentication
[b84342d6]339 agent API functions.
340 </para>
[9d3d8a8]341 <indexterm zone="polkit libpolkit-agent-1">
[b84342d6]342 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
[9d3d8a8]343 </indexterm>
344 </listitem>
345 </varlistentry>
346
347 <varlistentry id="libpolkit-gobject-1">
[b84342d6]348 <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
[9d3d8a8]349 <listitem>
[b84342d6]350 <para>
[01996ebb]351 contains the <application>Polkit</application> authorization API functions.
[b84342d6]352 </para>
[9d3d8a8]353 <indexterm zone="polkit libpolkit-gobject-1">
[b84342d6]354 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
[9d3d8a8]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.