source: postlfs/security/polkit-systemd.xml@ 6dc7c95

systemd-11177
Last change on this file since 6dc7c95 was bdbc765b, 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
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
[7cadfea]39 &lfs75_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
[bdbc765b]83 <bridgehead renderas="sect4">Recommended</bridgehead>
[7edfe43]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"/>,
[7edfe43]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
144 <para>
145 Install <application>Polkit</application> by running the following
[37aba7f]146 commands:
[b84342d6]147 </para>
[9d3d8a8]148
[b4ec1126]149<screen><userinput>./configure --prefix=/usr \
150 --sysconfdir=/etc \
151 --localstatedir=/var \
[7edfe43]152 --disable-static &amp;&amp;
[9d3d8a8]153make</userinput></screen>
154
[b84342d6]155 <para>
[01996ebb]156 To test the results, issue: <command>make check</command>.
[3bbf74c5]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.
[b84342d6]161 </para>
[9d3d8a8]162
[b84342d6]163 <para>
164 Now, as the <systemitem class="username">root</systemitem> user:
165 </para>
[9d3d8a8]166
167<screen role="root"><userinput>make install</userinput></screen>
168
169 </sect2>
170
171 <sect2 role="commands">
172 <title>Command Explanations</title>
173
[7edfe43]174 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
175 href="../../xincludes/static-libraries.xml"/>
[dbac0b14]176
[b84342d6]177 <para>
[7edfe43]178 <option>--with-authfw=shadow</option>: This switch enables the
[01996ebb]179 package to use the <application>Shadow</application> rather than the
[7edfe43]180 <application>Linux PAM</application> Authentication framework. Use it
181 if you have not installed <application>Linux PAM</application>.
[b84342d6]182 </para>
183
184 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
185 href="../../xincludes/gtk-doc-rebuild.xml"/>
[9d3d8a8]186
187 </sect2>
188
[a6bd736]189 <sect2 role="configuration">
[01996ebb]190 <title>Configuring Polkit</title>
[a6bd736]191
192 <sect3>
193 <title>PAM Configuration</title>
194
195 <note>
[b84342d6]196 <para>
[01996ebb]197 If you did not build <application>Polkit</application> with
[b84342d6]198 <application>Linux PAM</application> support, you can skip this section.
[a6bd736]199 </para>
200 </note>
201
[b84342d6]202 <para>
[0d7900a]203 If you have built <application>Polkit</application> with
204 <application>Linux PAM</application> support, you need to modify
[9ca304a]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>
[b84342d6]208 user to create the configuration file for <application>Linux PAM</application>:
[a6bd736]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
[9d3d8a8]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>
[b84342d6]235 <seg>
[f342c0a9]236 pkaction, pkcheck, pk-example-frobnicate, pkexec,
237 pkttyagent and polkitd
[b84342d6]238 </seg>
239 <seg>
[0d7900a]240 libpolkit-agent-1.so and
[b84342d6]241 libpolkit-gobject-1.so
242 </seg>
[028759b]243 <seg>
[01996ebb]244 /etc/polkit-1,
245 /usr/include/polkit-1,
246 /usr/lib/polkit-1,
247 /usr/share/gtk-doc/html/polkit-1 and
[028759b]248 /usr/share/polkit-1
[b84342d6]249 </seg>
[9d3d8a8]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>
[b84342d6]261 <para>
262 is used to obtain information about registered PolicyKit actions.
263 </para>
[9d3d8a8]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>
[b84342d6]273 <para>
274 is used to check whether a process is authorized for action.
275 </para>
[9d3d8a8]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>
[b84342d6]285 <para>
286 allows an authorized user to execute a command as another user.
287 </para>
[9d3d8a8]288 <indexterm zone="polkit pkexec">
289 <primary sortas="b-pkexec">pkexec</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
[b84342d6]294 <varlistentry id="pkttyagent">
295 <term><command>pkttyagent</command></term>
[9d3d8a8]296 <listitem>
[b84342d6]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>
[9d3d8a8]302 </indexterm>
303 </listitem>
[b84342d6]304 </varlistentry>
[9d3d8a8]305
[875b4070]306 <varlistentry id="polkitd">
[9d3d8a8]307 <term><command>polkitd</command></term>
308 <listitem>
[b84342d6]309 <para>
[0d7900a]310 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
[b84342d6]311 service on the system message bus.
312 </para>
[875b4070]313 <indexterm zone="polkit polkitd">
[9d3d8a8]314 <primary sortas="b-polkitd">polkitd</primary>
315 </indexterm>
316 </listitem>
317 </varlistentry>
318
319 <varlistentry id="libpolkit-agent-1">
[b84342d6]320 <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
[9d3d8a8]321 <listitem>
[b84342d6]322 <para>
[01996ebb]323 contains the <application>Polkit</application> authentication
[b84342d6]324 agent API functions.
325 </para>
[9d3d8a8]326 <indexterm zone="polkit libpolkit-agent-1">
[b84342d6]327 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
[9d3d8a8]328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="libpolkit-gobject-1">
[b84342d6]333 <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
[9d3d8a8]334 <listitem>
[b84342d6]335 <para>
[01996ebb]336 contains the <application>Polkit</application> authorization API functions.
[b84342d6]337 </para>
[9d3d8a8]338 <indexterm zone="polkit libpolkit-gobject-1">
[b84342d6]339 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
[9d3d8a8]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.