source: postlfs/security/polkit.xml@ d278ced

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since d278ced was d278ced, checked in by Douglas R. Reno <renodr@…>, 8 years ago

Update to gjs-1.45.4
Added several seds to packages to silence libtool warnings
Added wayland-protocols to trunk and modified GTK+3 instructions to reflect this
Typo fixes and text changes
Added systemd-specific CUPS restart info back to Gutenprint
Added a note in babl that generating the docs takes a long time.

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

  • Property mode set to 100644
File size: 13.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 "4b77776c9e4f897dcfe03b2c34198edf">
11 <!ENTITY polkit-size "1.4 MB">
12 <!ENTITY polkit-buildsize "15 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 &lfs79_checked;&gcc6_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" revision="systemd">Recommended</bridgehead>
84 <para role="recommended" revision="systemd">
85 <xref linkend="linux-pam"/>
86 </para>
87
88 <note revision="systemd">
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
97
98 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
99 <para role="optional">
100 <xref linkend="gobject-introspection"/>
101 </para>
102
103 <bridgehead renderas="sect4">Optional</bridgehead>
104 <para role="optional">
105 <xref linkend="DocBook"/>,
106 <xref linkend="docbook-xsl"/>,
107 <xref linkend="gtk-doc"/>, <phrase revision="systemd">and </phrase>
108 <xref linkend="libxslt"/><phrase revision="sysv">, and
109 <xref linkend="linux-pam"/></phrase>
110 </para>
111
112 <bridgehead renderas="sect4" revision="systemd">Required Runtime Dependencies</bridgehead>
113 <para role="required" revision="systemd">
114 <xref linkend="systemd"/>
115 </para>
116
117 <note>
118 <para>
119 If <xref linkend="libxslt"/> is installed,
120 then <xref linkend="DocBook"/> and <xref linkend="docbook-xsl"/> are
121 required. If you have installed <xref linkend="libxslt"/>, but you do
122 not want to install any of the DocBook packages mentioned, you will
123 need to use <option>--disable-man-pages</option> in the instructions
124 below.
125 </para>
126 </note>
127
128 <para condition="html" role="usernotes">User Notes:
129 <ulink url="&blfs-wiki;/polkit"/>
130 </para>
131 </sect2>
132
133 <sect2 role="installation">
134 <title>Installation of Polkit</title>
135
136 <para>
137 There should be a dedicated user and group to take control
138 of the <command>polkitd</command> daemon after it is
139 started. Issue the following commands as the
140 <systemitem class="username">root</systemitem> user:
141 </para>
142
143<screen role="root"><userinput>groupadd -fg 27 polkitd &amp;&amp;
144useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \
145 -g polkitd -s /bin/false polkitd</userinput></screen>
146
147 <note revision="systemd">
148 <para>
149 When building <application>Polkit</application> with
150 <application>systemd</application> logind support, the
151 <command>configure</command> script explicitly checks if
152 system is booted using <application>systemd</application>.
153 This can cause problems if building the package in chroot,
154 where the <command>configure</command> would fail to
155 detect <application>systemd</application>. To workaround
156 the problem, simply run the following command:
157 </para>
158
159<screen><userinput>sed -i "s:/sys/fs/cgroup/systemd/:/sys:g" configure</userinput></screen>
160 </note>
161
162 <para>
163 Install <application>Polkit</application> by running the following
164 commands:
165 </para>
166
167<screen revision="sysv"><userinput>sed -i "/seems to be moved/s/^/#/" ltmain.sh &amp;&amp;
168./configure --prefix=/usr \
169 --sysconfdir=/etc \
170 --localstatedir=/var \
171 --disable-static \
172 --enable-libsystemd-login=no \
173 --with-authfw=shadow &amp;&amp;
174make</userinput></screen>
175
176<screen revision="systemd"><userinput>sed -i "/seems to be moved/s/^/#/" ltmain.sh &amp;&amp;
177./configure --prefix=/usr \
178 --sysconfdir=/etc \
179 --localstatedir=/var \
180 --disable-static &amp;&amp;
181make</userinput></screen>
182
183 <para>
184 To test the results, issue: <command>make check</command>.
185 Note that system <application>D-Bus</application> daemon
186 must be running for the testsuite to complete. There is
187 also a warning about <application>ConsoleKit</application>
188 database not present, but that one can be safely ignored.
189 </para>
190
191 <para>
192 Now, as the <systemitem class="username">root</systemitem> user:
193 </para>
194
195<screen role="root"><userinput>make install</userinput></screen>
196
197 </sect2>
198
199 <sect2 role="commands">
200 <title>Command Explanations</title>
201
202 <para>
203 <command>sed -i ... ltmain.sh</command>: This sed silences many useless
204 and annoying warnings from libtool.
205 </para>
206
207 <para revision="sysv">
208 <parameter>--enable-libsystemd-login=no</parameter>: This parameter fixes
209 building without <application>systemd</application>, which is not part
210 of LFS/BLFS. If you use <application>systemd</application>,
211 replace "no" by "yes".
212 </para>
213
214 <para revision="sysv">
215 <parameter>--with-authfw=shadow</parameter>: This parameter configures the
216 package to use the <application>Shadow</application> rather than the
217 <application>Linux-PAM</application> Authentication framework. Remove it
218 if you would like to use <application>Linux-PAM</application>.
219 </para>
220
221 <para revision="systemd">
222 <option>--with-authfw=shadow</option>: This switch enables the
223 package to use the <application>Shadow</application> rather than the
224 <application>Linux PAM</application> Authentication framework. Use it
225 if you have not installed <application>Linux PAM</application>.
226 </para>
227
228 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
229 href="../../xincludes/static-libraries.xml"/>
230
231 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
232 href="../../xincludes/gtk-doc-rebuild.xml"/>
233
234 </sect2>
235
236 <sect2 role="configuration">
237 <title>Configuring Polkit</title>
238
239 <sect3>
240 <title>PAM Configuration</title>
241
242 <note>
243 <para>
244 If you did not build <application>Polkit</application> with
245 <application>Linux PAM</application> support, you can skip this section.
246 </para>
247 </note>
248
249 <para>
250 If you have built <application>Polkit</application> with
251 <application>Linux PAM</application> support, you need to modify
252 the default PAM configuration file which was installed by default to get
253 <application>Polkit</application> to work correctly with BLFS. Issue the
254 following commands as the <systemitem class="username">root</systemitem>
255 user to create the configuration file for <application>Linux PAM</application>:
256 </para>
257
258<screen role="root"><userinput>cat &gt; /etc/pam.d/polkit-1 &lt;&lt; "EOF"
259<literal># Begin /etc/pam.d/polkit-1
260
261auth include system-auth
262account include system-account
263password include system-password
264session include system-session
265
266# End /etc/pam.d/polkit-1</literal>
267EOF</userinput></screen>
268
269 </sect3>
270
271 </sect2>
272
273 <sect2 role="content">
274 <title>Contents</title>
275
276 <segmentedlist>
277 <segtitle>Installed Programs</segtitle>
278 <segtitle>Installed Libraries</segtitle>
279 <segtitle>Installed Directories</segtitle>
280
281 <seglistitem>
282 <seg>
283 pkaction, pkcheck, pk-example-frobnicate, pkexec,
284 pkttyagent and polkitd
285 </seg>
286 <seg>
287 libpolkit-agent-1.so and
288 libpolkit-gobject-1.so
289 </seg>
290 <seg>
291 /etc/polkit-1,
292 /usr/include/polkit-1,
293 /usr/lib/polkit-1,
294 /usr/share/gtk-doc/html/polkit-1 and
295 /usr/share/polkit-1
296 </seg>
297 </seglistitem>
298 </segmentedlist>
299
300 <variablelist>
301 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
302 <?dbfo list-presentation="list"?>
303 <?dbhtml list-presentation="table"?>
304
305 <varlistentry id="pkaction">
306 <term><command>pkaction</command></term>
307 <listitem>
308 <para>
309 is used to obtain information about registered PolicyKit actions.
310 </para>
311 <indexterm zone="polkit pkaction">
312 <primary sortas="b-pkaction">pkaction</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="pkcheck">
318 <term><command>pkcheck</command></term>
319 <listitem>
320 <para>
321 is used to check whether a process is authorized for action.
322 </para>
323 <indexterm zone="polkit pkcheck">
324 <primary sortas="b-pkcheck">pkcheck</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="pk-example-frobnicate">
330 <term><command>pk-example-frobnicate</command></term>
331 <listitem>
332 <para>
333 is an example program to test the <command>pkexec</command>
334 command.
335 </para>
336 <indexterm zone="polkit pk-example-frobnicate">
337 <primary sortas="b-pk-example-frobnicate">pk-example-frobnicate</primary>
338 </indexterm>
339 </listitem>
340 </varlistentry>
341
342 <varlistentry id="pkexec">
343 <term><command>pkexec</command></term>
344 <listitem>
345 <para>
346 allows an authorized user to execute a command as another user.
347 </para>
348 <indexterm zone="polkit pkexec">
349 <primary sortas="b-pkexec">pkexec</primary>
350 </indexterm>
351 </listitem>
352 </varlistentry>
353
354 <varlistentry id="pkttyagent">
355 <term><command>pkttyagent</command></term>
356 <listitem>
357 <para>
358 is used to start a textual authentication agent for the subject.
359 </para>
360 <indexterm zone="polkit pkttyagent">
361 <primary sortas="b-pkttyagent">pkttyagent</primary>
362 </indexterm>
363 </listitem>
364 </varlistentry>
365
366 <varlistentry id="polkitd">
367 <term><command>polkitd</command></term>
368 <listitem>
369 <para>
370 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
371 service on the system message bus.
372 </para>
373 <indexterm zone="polkit polkitd">
374 <primary sortas="b-polkitd">polkitd</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 <varlistentry id="libpolkit-agent-1">
380 <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
381 <listitem>
382 <para>
383 contains the <application>Polkit</application> authentication
384 agent API functions.
385 </para>
386 <indexterm zone="polkit libpolkit-agent-1">
387 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
388 </indexterm>
389 </listitem>
390 </varlistentry>
391
392 <varlistentry id="libpolkit-gobject-1">
393 <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
394 <listitem>
395 <para>
396 contains the <application>Polkit</application> authorization API functions.
397 </para>
398 <indexterm zone="polkit libpolkit-gobject-1">
399 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
400 </indexterm>
401 </listitem>
402 </varlistentry>
403
404 </variablelist>
405
406 </sect2>
407
408</sect1>
Note: See TracBrowser for help on using the repository browser.