source: postlfs/security/polkit.xml@ 4c2be438

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

fix Gnome dependencies - switch itstool with yelp-xsl (YELP_HELP_INIT requires yelp-xsl stylesheets),recommend gobject-introspection for every package in gnome/{core,add} and make Optional g-i section indicating that is required for gnome in packages that are not just required by gnome. Made some recommended (expected) deps to gstreamer plugins (codecs, input and output sinks), recommended alsa to the libcanberra, explicitly disabled oss to remove configure warning + added gnome dependencies into seperate optional section to libcanberra page. Added --disable-scrollkeeper explanation to many packages that can use rarian (for the scrollkeeper compat) and added some more rarian recommendations. Checked polkit, accountservice and consolekit deps, sorted them a bit. Finished Gnome 3.4

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

  • Property mode set to 100644
File size: 10.1 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 "http://hal.freedesktop.org/releases/polkit-&polkit-version;.tar.gz">
8 <!ENTITY polkit-download-ftp " ">
9 <!ENTITY polkit-md5sum "e380b4c6fb1e7bccf854e92edc0a8ce1">
10 <!ENTITY polkit-size "1.4 MB">
11 <!ENTITY polkit-buildsize "9 MB">
12 <!ENTITY polkit-time "0.3 SBU">
13]>
14
15<sect1 id="polkit" xreflabel="polkit-&polkit-version;">
16 <?dbhtml filename="polkit.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>polkit-&polkit-version;</title>
24
25 <indexterm zone="polkit">
26 <primary sortas="a-polkit">polkit</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to polkit</title>
31
32 <para>The <application>polkit</application> package is an
33 application-level toolkit for defining and handling the policy that allows
34 unprivileged processes to speak to privileged processes.</para>
35
36 &lfs70_checked;
37
38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&polkit-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&polkit-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &polkit-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &polkit-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &polkit-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &polkit-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">polkit Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Required</bridgehead>
63 <para role="required">
64 <xref linkend="intltool"/> and
65 <xref linkend="pkgconfig"/>
66 </para>
67
68 <bridgehead renderas="sect4">Optional (Required if building GNOME)</bridgehead>
69 <para role="optional">
70 <xref linkend="gobject-introspection"/>
71 </para>
72
73 <bridgehead renderas="sect4">Optional</bridgehead>
74 <para role="optional">
75 <xref linkend="DocBook"/>,
76 <xref linkend="docbook-xsl"/>,
77 <xref linkend="gtk-doc"/>,
78 <xref linkend="libxslt"/> and
79 <xref linkend="linux-pam"/>
80 </para>
81
82 <note>
83 <para>If <xref linkend="libxslt"/> is installed then <xref
84 linkend="DocBook"/> and <xref linkend="docbook-xsl"/> are required.</para>
85 </note>
86
87 <para condition="html" role="usernotes">User Notes:
88 <ulink url="&blfs-wiki;/polkit"/></para>
89
90 </sect2>
91
92 <sect2 role="installation">
93 <title>Installation of polkit</title>
94
95 <para>Install <application>polkit</application> by running the following
96 commands as an unprivileged user:</para>
97
98<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
99 --localstatedir=/var --libexecdir=/usr/lib/polkit-1 \
100 --with-authfw=shadow &amp;&amp;
101make</userinput></screen>
102
103 <para>This package does not come with a test suite.</para>
104
105 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
106
107<screen role="root"><userinput>make install</userinput></screen>
108
109 </sect2>
110
111 <sect2 role="commands">
112 <title>Command Explanations</title>
113
114 <para><parameter>--with-authfw=shadow</parameter>: This parameter will use
115 the <application>Shadow</application> rather than the
116 <application>Linux-PAM</application> Authentication framework. Remove it if
117 you would like to use <application>Linux-PAM</application>.</para>
118 <para><parameter>--disable-static</parameter>: This will prevent the static
119 libraries from being built.</para>
120
121 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
122 href="../../xincludes/gtk-doc-rebuild.xml"/>
123
124 </sect2>
125
126 <sect2 role="configuration">
127 <title>Configuring polkit</title>
128
129 <sect3 id="polkit-config">
130 <title>Config Files</title>
131
132 <para><filename>/etc/polkit-1/localauthority.conf.d/*</filename></para>
133 </sect3>
134
135 <sect3>
136 <title>PAM Configuration</title>
137
138 <note>
139 <para>If you did not build <application>polkit</application> with
140 <application>Linux PAM</application> support, you can skip this section.
141 </para>
142 </note>
143
144 <para>If you built <application>polkit</application> with
145 <application>Linux PAM</application> support, you will need to modify
146 the pam configuration file which was installed by default to get
147 <application>polkit</application> to work correctly with BLFS.</para>
148
149 <para>Issue the following commands as the <systemitem class="username">root</systemitem>
150 user to create the configuration file for <application>Linux PAM</application>:
151 </para>
152
153<screen role="root"><userinput>cat &gt; /etc/pam.d/polkit-1 &lt;&lt; "EOF"
154<literal># Begin /etc/pam.d/polkit-1
155
156auth include system-auth
157account include system-account
158password include system-password
159session include system-session
160
161# End /etc/pam.d/polkit-1</literal>
162EOF</userinput></screen>
163
164 </sect3>
165
166 </sect2>
167
168 <sect2 role="content">
169 <title>Contents</title>
170
171 <segmentedlist>
172 <segtitle>Installed Programs</segtitle>
173 <segtitle>Installed Libraries</segtitle>
174 <segtitle>Installed Directories</segtitle>
175
176 <seglistitem>
177 <seg>pk-example-frobnicate, pkaction, pkcheck, pkexec,
178 polkit-agent-helper-1, and polkitd</seg>
179 <seg>libnullbackend.{so,a}, libpolkit-agent-1.{so,a},
180 libpolkit-backend-1.{so,a} and libpolkit-gobject-1.{so,a}</seg>
181 <seg>/etc/polkit-1, /usr/include/polkit-1, /usr/lib/polkit-1,
182 /usr/share/polkit-1 and /var/lib/polkit-1</seg>
183 </seglistitem>
184 </segmentedlist>
185
186 <variablelist>
187 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
188 <?dbfo list-presentation="list"?>
189 <?dbhtml list-presentation="table"?>
190
191<!-- <varlistentry id="pk-example-frobnicate">
192 <term><command>pk-example-frobnicate</command></term>
193 <listitem>
194 <para>does this .....</para>
195 <indexterm zone="polkit pk-example-frobnicate">
196 <primary sortas="b-pk-example-frobnicate">pk-example-frobnicate</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>-->
200
201 <varlistentry id="pkaction">
202 <term><command>pkaction</command></term>
203 <listitem>
204 <para>is used to obtain information about registered PolicyKit actions.</para>
205 <indexterm zone="polkit pkaction">
206 <primary sortas="b-pkaction">pkaction</primary>
207 </indexterm>
208 </listitem>
209 </varlistentry>
210
211 <varlistentry id="pkcheck">
212 <term><command>pkcheck</command></term>
213 <listitem>
214 <para>is used to check whether a process is authorized for action.</para>
215 <indexterm zone="polkit pkcheck">
216 <primary sortas="b-pkcheck">pkcheck</primary>
217 </indexterm>
218 </listitem>
219 </varlistentry>
220
221 <varlistentry id="pkexec">
222 <term><command>pkexec</command></term>
223 <listitem>
224 <para>allows an authorized user to execute a command as another user.</para>
225 <indexterm zone="polkit pkexec">
226 <primary sortas="b-pkexec">pkexec</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
231<!-- <varlistentry id="polkit-agent-helper-1">
232 <term><command>polkit-agent-helper-1</command></term>
233 <listitem>
234 <para>does this .....</para>
235 <indexterm zone="polkit polkit-agent-helper-1">
236 <primary sortas="b-polkit-agent-helper-1">polkit-agent-helper-1</primary>
237 </indexterm>
238 </listitem>
239 </varlistentry>-->
240
241 <varlistentry id="polkitd">
242 <term><command>polkitd</command></term>
243 <listitem>
244 <para>provides the org.freedesktop.PolicyKit1
245 <application>D-Bus</application> service on the system message bus.</para>
246 <indexterm zone="polkit polkitd">
247 <primary sortas="b-polkitd">polkitd</primary>
248 </indexterm>
249 </listitem>
250 </varlistentry>
251
252 <varlistentry id="libnullbackend">
253 <term><filename class='libraryfile'>libnullbackend.{so,a}</filename></term>
254 <listitem>
255 <para>PolicyKit null backend</para>
256 <indexterm zone="polkit libnullbackend">
257 <primary sortas="c-libnullbackend">libnullbackend.{so,a}</primary>
258 </indexterm>
259 </listitem>
260 </varlistentry>
261
262 <varlistentry id="libpolkit-agent-1">
263 <term><filename class='libraryfile'>libpolkit-agent-1.{so,a}</filename></term>
264 <listitem>
265 <para>contains the <application>polkit</application> authentication
266 agent API functions.</para>
267 <indexterm zone="polkit libpolkit-agent-1">
268 <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.{so,a}</primary>
269 </indexterm>
270 </listitem>
271 </varlistentry>
272
273 <varlistentry id="libpolkit-backend-1">
274 <term><filename class='libraryfile'>libpolkit-backend-1.{so,a}</filename></term>
275 <listitem>
276 <para>contains the <application>polkit</application> backend API
277 functions.</para>
278 <indexterm zone="polkit libpolkit-backend-1">
279 <primary sortas="c-libpolkit-backend-1">libpolkit-backend-1.{so,a}</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="libpolkit-gobject-1">
285 <term><filename class='libraryfile'>libpolkit-gobject-1.{so,a}</filename></term>
286 <listitem>
287 <para>contains the <application>polkit</application> authorization API
288 functions.</para>
289 <indexterm zone="polkit libpolkit-gobject-1">
290 <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.{so,a}</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 </variablelist>
296
297 </sect2>
298
299</sect1>
Note: See TracBrowser for help on using the repository browser.