source: postlfs/security/polkit.xml@ 01996ebb

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 01996ebb was 01996ebb, checked in by Krejzi <krejzi@…>, 12 years ago

Added Alacarte 0.14.4. Updated: AccountsService -> 0.6.21, Colord -> 0.1.21, EOG -> 3.4.2, GNOME User Docs -> 3.4.2, Notification Daemon -> 0.7.5, Polkit -> 0.106 and UDisks2 -> 1.98.0. Added ChangeLog entry for Pango.

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

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