source: postlfs/security/polkit.xml@ 1ad59f2

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

Remove XML::Parser from perl modules
Archive acl, attr, intltool, expat, gperf
Synchronize libcap with LFS.

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

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