source: postlfs/security/polkit.xml@ 9ca304a

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 9ca304a was 9ca304a, checked in by Randy McMurchy <randy@…>, 11 years ago

Minor fixes

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@11025 af4574ff-66df-0310-9fd7-8a98e5e911e0

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