source: postlfs/security/polkit.xml@ f82ac3f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 f82ac3f was f82ac3f, checked in by Bruce Dubbs <bdubbs@…>, 11 years ago

Archive unneeded packages

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

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