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