source: postlfs/security/polkit.xml@ c0b5bba

gnome
Last change on this file since c0b5bba was c0b5bba, checked in by Christopher Gregory <cjg@…>, 10 years ago

Added systemd notes to libcap mitkrb openssh polkit and stunnel pages

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

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