source: postlfs/security/polkit.xml@ de5068d

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 gimp3 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/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since de5068d 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
RevLine 
[9d3d8a8]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
[b84342d6]7 <!ENTITY polkit-download-http
8 "http://www.freedesktop.org/software/polkit/releases/polkit-&polkit-version;.tar.gz">
[9d3d8a8]9 <!ENTITY polkit-download-ftp " ">
[01996ebb]10 <!ENTITY polkit-md5sum "739d1ca4bf3462175030ce3d7771d7fa">
[bb947c32]11 <!ENTITY polkit-size "1.4 MB">
[01996ebb]12 <!ENTITY polkit-buildsize "16 MB">
[b84342d6]13 <!ENTITY polkit-time "0.5 SBU">
[9d3d8a8]14]>
15
[01996ebb]16<sect1 id="polkit" xreflabel="Polkit-&polkit-version;">
[9d3d8a8]17 <?dbhtml filename="polkit.html"?>
18
19 <sect1info>
20 <othername>$LastChangedBy$</othername>
21 <date>$Date$</date>
22 </sect1info>
23
[01996ebb]24 <title>Polkit-&polkit-version;</title>
[9d3d8a8]25
26 <indexterm zone="polkit">
[01996ebb]27 <primary sortas="a-Polkit">Polkit</primary>
[9d3d8a8]28 </indexterm>
29
30 <sect2 role="package">
[01996ebb]31 <title>Introduction to Polkit</title>
[9d3d8a8]32
[b84342d6]33 <para>
[01996ebb]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.
[b84342d6]37 </para>
[9d3d8a8]38
[55b07cb]39 &lfs71_checked;
[27e62762]40
[9d3d8a8]41 <bridgehead renderas="sect3">Package Information</bridgehead>
42 <itemizedlist spacing="compact">
43 <listitem>
[b84342d6]44 <para>
45 Download (HTTP): <ulink url="&polkit-download-http;"/>
46 </para>
[9d3d8a8]47 </listitem>
48 <listitem>
[b84342d6]49 <para>
50 Download (FTP): <ulink url="&polkit-download-ftp;"/>
51 </para>
[9d3d8a8]52 </listitem>
53 <listitem>
[b84342d6]54 <para>
55 Download MD5 sum: &polkit-md5sum;
56 </para>
[9d3d8a8]57 </listitem>
58 <listitem>
[b84342d6]59 <para>
60 Download size: &polkit-size;
61 </para>
[9d3d8a8]62 </listitem>
63 <listitem>
[b84342d6]64 <para>
65 Estimated disk space required: &polkit-buildsize;
66 </para>
[9d3d8a8]67 </listitem>
68 <listitem>
[b84342d6]69 <para>
70 Estimated build time: &polkit-time;
71 </para>
[9d3d8a8]72 </listitem>
73 </itemizedlist>
74
[01996ebb]75 <bridgehead renderas="sect3">Polkit Dependencies</bridgehead>
[9d3d8a8]76
77 <bridgehead renderas="sect4">Required</bridgehead>
[bb947c32]78 <para role="required">
[01996ebb]79 <xref linkend="glib2"/>,
80 <xref linkend="intltool"/> and
81 <xref linkend="SpiderMonkey"/>
[4c2be438]82 </para>
83
84 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
85 <para role="optional">
86 <xref linkend="gobject-introspection"/>
87 </para>
[9d3d8a8]88
89 <bridgehead renderas="sect4">Optional</bridgehead>
[bb947c32]90 <para role="optional">
[4c2be438]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>
[875b4070]97
98 <note>
[b84342d6]99 <para>
100 If <xref linkend="libxslt"/> is installed then <xref linkend="DocBook"/>
101 and <xref linkend="docbook-xsl"/> are required.
102 </para>
[875b4070]103 </note>
[9d3d8a8]104
105 <para condition="html" role="usernotes">User Notes:
[37aba7f]106 <ulink url="&blfs-wiki;/polkit"/>
107 </para>
[9d3d8a8]108 </sect2>
109
110 <sect2 role="installation">
[01996ebb]111 <title>Installation of Polkit</title>
[9d3d8a8]112
[b84342d6]113 <para>
[01996ebb]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
[37aba7f]126 commands:
[b84342d6]127 </para>
[9d3d8a8]128
[b84342d6]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;
[9d3d8a8]135make</userinput></screen>
136
[b84342d6]137 <para>
[01996ebb]138 To test the results, issue: <command>make check</command>.
[b84342d6]139 </para>
[9d3d8a8]140
[b84342d6]141 <para>
142 Now, as the <systemitem class="username">root</systemitem> user:
143 </para>
[9d3d8a8]144
145<screen role="root"><userinput>make install</userinput></screen>
146
147 </sect2>
148
149 <sect2 role="commands">
150 <title>Command Explanations</title>
151
[b84342d6]152 <para>
[01996ebb]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>.
[b84342d6]157 </para>
158
159 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
160 href="../../xincludes/static-libraries.xml"/>
[875b4070]161
[e05cd03f]162 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[b84342d6]163 href="../../xincludes/gtk-doc-rebuild.xml"/>
[9d3d8a8]164
165 </sect2>
166
[a6bd736]167 <sect2 role="configuration">
[01996ebb]168 <title>Configuring Polkit</title>
[a6bd736]169
170 <sect3>
171 <title>PAM Configuration</title>
172
173 <note>
[b84342d6]174 <para>
[01996ebb]175 If you did not build <application>Polkit</application> with
[b84342d6]176 <application>Linux PAM</application> support, you can skip this section.
[a6bd736]177 </para>
178 </note>
179
[b84342d6]180 <para>
[01996ebb]181 If you have built <application>Polkit</application> with
[b84342d6]182 <application>Linux PAM</application> support, you need to modify
183 default PAM configuration file which was installed by default to get
[01996ebb]184 <application>Polkit</application> to work correctly with BLFS.
[b84342d6]185 </para>
[a6bd736]186
[b84342d6]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>:
[a6bd736]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
[9d3d8a8]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>
[b84342d6]216 <seg>
[01996ebb]217 pkaction, pkcheck, pk-example-frobnicate, pkexec,
[b84342d6]218 pkttyagent and polkitd
219 </seg>
220 <seg>
[01996ebb]221 libpolkit-agent-1.so and
[b84342d6]222 libpolkit-gobject-1.so
223 </seg>
224 <seg>
[01996ebb]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
[b84342d6]230 </seg>
[9d3d8a8]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>
[b84342d6]242 <para>
243 is used to obtain information about registered PolicyKit actions.
244 </para>
[9d3d8a8]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>
[b84342d6]254 <para>
255 is used to check whether a process is authorized for action.
256 </para>
[9d3d8a8]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>
[b84342d6]266 <para>
267 allows an authorized user to execute a command as another user.
268 </para>
[9d3d8a8]269 <indexterm zone="polkit pkexec">
270 <primary sortas="b-pkexec">pkexec</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
[b84342d6]275 <varlistentry id="pkttyagent">
276 <term><command>pkttyagent</command></term>
[9d3d8a8]277 <listitem>
[b84342d6]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>
[9d3d8a8]283 </indexterm>
284 </listitem>
[b84342d6]285 </varlistentry>
[9d3d8a8]286
[875b4070]287 <varlistentry id="polkitd">
[9d3d8a8]288 <term><command>polkitd</command></term>
289 <listitem>
[b84342d6]290 <para>
291 provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
292 service on the system message bus.
293 </para>
[875b4070]294 <indexterm zone="polkit polkitd">
[9d3d8a8]295 <primary sortas="b-polkitd">polkitd</primary>
296 </indexterm>
297 </listitem>
298 </varlistentry>
299
300 <varlistentry id="libpolkit-agent-1">
[b84342d6]301 <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
[9d3d8a8]302 <listitem>
[b84342d6]303 <para>
[01996ebb]304 contains the <application>Polkit</application> authentication
[b84342d6]305 agent API functions.
306 </para>
[9d3d8a8]307 <indexterm zone="polkit libpolkit-agent-1">
[b84342d6]308 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
[9d3d8a8]309 </indexterm>
310 </listitem>
311 </varlistentry>
312
313 <varlistentry id="libpolkit-gobject-1">
[b84342d6]314 <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
[9d3d8a8]315 <listitem>
[b84342d6]316 <para>
[01996ebb]317 contains the <application>Polkit</application> authorization API functions.
[b84342d6]318 </para>
[9d3d8a8]319 <indexterm zone="polkit libpolkit-gobject-1">
[b84342d6]320 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
[9d3d8a8]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.