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