[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 " ">
|
---|
[4049d110] | 10 | <!ENTITY polkit-md5sum "81b116edf986d8e13502929a171f4e0d">
|
---|
[78e2a40] | 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
|
---|
[9ca304a] | 35 | authorizations. It is used for allowing unprivileged processes to
|
---|
| 36 | comminicate with privileged processes.
|
---|
[b84342d6] | 37 | </para>
|
---|
[9d3d8a8] | 38 |
|
---|
[0b33a30] | 39 | &lfs73_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
|
---|
| 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">
|
---|
[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 |
|
---|
[b84342d6] | 132 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 133 | --sysconfdir=/etc \
|
---|
| 134 | --localstatedir=/var \
|
---|
| 135 | --libexecdir=/usr/lib/polkit-1 \
|
---|
| 136 | --with-authfw=shadow \
|
---|
| 137 | --disable-static &&
|
---|
[9d3d8a8] | 138 | make</userinput></screen>
|
---|
| 139 |
|
---|
[b84342d6] | 140 | <para>
|
---|
[01996ebb] | 141 | To test the results, issue: <command>make check</command>.
|
---|
[3bbf74c5] | 142 | Note that system <application>D-Bus</application> daemon
|
---|
| 143 | must be running for the testsuite to complete. There is
|
---|
| 144 | also a warning about <application>ConsoleKit</application>
|
---|
| 145 | database not present, but that one can be safely ignored.
|
---|
[b84342d6] | 146 | </para>
|
---|
[9d3d8a8] | 147 |
|
---|
[b84342d6] | 148 | <para>
|
---|
| 149 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 150 | </para>
|
---|
[9d3d8a8] | 151 |
|
---|
| 152 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 153 |
|
---|
| 154 | </sect2>
|
---|
| 155 |
|
---|
| 156 | <sect2 role="commands">
|
---|
| 157 | <title>Command Explanations</title>
|
---|
| 158 |
|
---|
[b84342d6] | 159 | <para>
|
---|
[01996ebb] | 160 | <parameter>--with-authfw=shadow</parameter>: This parameter configures the
|
---|
| 161 | package to use the <application>Shadow</application> rather than the
|
---|
| 162 | <application>Linux PAM</application> Authentication framework. Remove it if
|
---|
| 163 | you would like to use <application>Linux PAM</application>.
|
---|
[b84342d6] | 164 | </para>
|
---|
| 165 |
|
---|
| 166 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 167 | href="../../xincludes/static-libraries.xml"/>
|
---|
[875b4070] | 168 |
|
---|
[e05cd03f] | 169 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[b84342d6] | 170 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[9d3d8a8] | 171 |
|
---|
| 172 | </sect2>
|
---|
| 173 |
|
---|
[a6bd736] | 174 | <sect2 role="configuration">
|
---|
[01996ebb] | 175 | <title>Configuring Polkit</title>
|
---|
[a6bd736] | 176 |
|
---|
| 177 | <sect3>
|
---|
| 178 | <title>PAM Configuration</title>
|
---|
| 179 |
|
---|
| 180 | <note>
|
---|
[b84342d6] | 181 | <para>
|
---|
[01996ebb] | 182 | If you did not build <application>Polkit</application> with
|
---|
[b84342d6] | 183 | <application>Linux PAM</application> support, you can skip this section.
|
---|
[a6bd736] | 184 | </para>
|
---|
| 185 | </note>
|
---|
| 186 |
|
---|
[b84342d6] | 187 | <para>
|
---|
[0d7900a] | 188 | If you have built <application>Polkit</application> with
|
---|
| 189 | <application>Linux PAM</application> support, you need to modify
|
---|
[9ca304a] | 190 | the default PAM configuration file which was installed by default to get
|
---|
| 191 | <application>Polkit</application> to work correctly with BLFS. Issue the
|
---|
| 192 | following commands as the <systemitem class="username">root</systemitem>
|
---|
[b84342d6] | 193 | user to create the configuration file for <application>Linux PAM</application>:
|
---|
[a6bd736] | 194 | </para>
|
---|
| 195 |
|
---|
| 196 | <screen role="root"><userinput>cat > /etc/pam.d/polkit-1 << "EOF"
|
---|
| 197 | <literal># Begin /etc/pam.d/polkit-1
|
---|
| 198 |
|
---|
| 199 | auth include system-auth
|
---|
| 200 | account include system-account
|
---|
| 201 | password include system-password
|
---|
| 202 | session include system-session
|
---|
| 203 |
|
---|
| 204 | # End /etc/pam.d/polkit-1</literal>
|
---|
| 205 | EOF</userinput></screen>
|
---|
| 206 |
|
---|
| 207 | </sect3>
|
---|
| 208 |
|
---|
| 209 | </sect2>
|
---|
| 210 |
|
---|
[9d3d8a8] | 211 | <sect2 role="content">
|
---|
| 212 | <title>Contents</title>
|
---|
| 213 |
|
---|
| 214 | <segmentedlist>
|
---|
| 215 | <segtitle>Installed Programs</segtitle>
|
---|
| 216 | <segtitle>Installed Libraries</segtitle>
|
---|
| 217 | <segtitle>Installed Directories</segtitle>
|
---|
| 218 |
|
---|
| 219 | <seglistitem>
|
---|
[b84342d6] | 220 | <seg>
|
---|
[f342c0a9] | 221 | pkaction, pkcheck, pk-example-frobnicate, pkexec,
|
---|
| 222 | pkttyagent and polkitd
|
---|
[b84342d6] | 223 | </seg>
|
---|
| 224 | <seg>
|
---|
[0d7900a] | 225 | libpolkit-agent-1.so and
|
---|
[b84342d6] | 226 | libpolkit-gobject-1.so
|
---|
| 227 | </seg>
|
---|
[028759b] | 228 | <seg>
|
---|
[01996ebb] | 229 | /etc/polkit-1,
|
---|
| 230 | /usr/include/polkit-1,
|
---|
| 231 | /usr/lib/polkit-1,
|
---|
| 232 | /usr/share/gtk-doc/html/polkit-1 and
|
---|
[028759b] | 233 | /usr/share/polkit-1
|
---|
[b84342d6] | 234 | </seg>
|
---|
[9d3d8a8] | 235 | </seglistitem>
|
---|
| 236 | </segmentedlist>
|
---|
| 237 |
|
---|
| 238 | <variablelist>
|
---|
| 239 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 240 | <?dbfo list-presentation="list"?>
|
---|
| 241 | <?dbhtml list-presentation="table"?>
|
---|
| 242 |
|
---|
| 243 | <varlistentry id="pkaction">
|
---|
| 244 | <term><command>pkaction</command></term>
|
---|
| 245 | <listitem>
|
---|
[b84342d6] | 246 | <para>
|
---|
| 247 | is used to obtain information about registered PolicyKit actions.
|
---|
| 248 | </para>
|
---|
[9d3d8a8] | 249 | <indexterm zone="polkit pkaction">
|
---|
| 250 | <primary sortas="b-pkaction">pkaction</primary>
|
---|
| 251 | </indexterm>
|
---|
| 252 | </listitem>
|
---|
| 253 | </varlistentry>
|
---|
| 254 |
|
---|
| 255 | <varlistentry id="pkcheck">
|
---|
| 256 | <term><command>pkcheck</command></term>
|
---|
| 257 | <listitem>
|
---|
[b84342d6] | 258 | <para>
|
---|
| 259 | is used to check whether a process is authorized for action.
|
---|
| 260 | </para>
|
---|
[9d3d8a8] | 261 | <indexterm zone="polkit pkcheck">
|
---|
| 262 | <primary sortas="b-pkcheck">pkcheck</primary>
|
---|
| 263 | </indexterm>
|
---|
| 264 | </listitem>
|
---|
| 265 | </varlistentry>
|
---|
| 266 |
|
---|
| 267 | <varlistentry id="pkexec">
|
---|
| 268 | <term><command>pkexec</command></term>
|
---|
| 269 | <listitem>
|
---|
[b84342d6] | 270 | <para>
|
---|
| 271 | allows an authorized user to execute a command as another user.
|
---|
| 272 | </para>
|
---|
[9d3d8a8] | 273 | <indexterm zone="polkit pkexec">
|
---|
| 274 | <primary sortas="b-pkexec">pkexec</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
[b84342d6] | 279 | <varlistentry id="pkttyagent">
|
---|
| 280 | <term><command>pkttyagent</command></term>
|
---|
[9d3d8a8] | 281 | <listitem>
|
---|
[b84342d6] | 282 | <para>
|
---|
| 283 | is used to start a textual authentication agent for the subject.
|
---|
| 284 | </para>
|
---|
| 285 | <indexterm zone="polkit pkttyagent">
|
---|
| 286 | <primary sortas="b-pkttyagent">pkttyagent</primary>
|
---|
[9d3d8a8] | 287 | </indexterm>
|
---|
| 288 | </listitem>
|
---|
[b84342d6] | 289 | </varlistentry>
|
---|
[9d3d8a8] | 290 |
|
---|
[875b4070] | 291 | <varlistentry id="polkitd">
|
---|
[9d3d8a8] | 292 | <term><command>polkitd</command></term>
|
---|
| 293 | <listitem>
|
---|
[b84342d6] | 294 | <para>
|
---|
[0d7900a] | 295 | provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
|
---|
[b84342d6] | 296 | service on the system message bus.
|
---|
| 297 | </para>
|
---|
[875b4070] | 298 | <indexterm zone="polkit polkitd">
|
---|
[9d3d8a8] | 299 | <primary sortas="b-polkitd">polkitd</primary>
|
---|
| 300 | </indexterm>
|
---|
| 301 | </listitem>
|
---|
| 302 | </varlistentry>
|
---|
| 303 |
|
---|
| 304 | <varlistentry id="libpolkit-agent-1">
|
---|
[b84342d6] | 305 | <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
|
---|
[9d3d8a8] | 306 | <listitem>
|
---|
[b84342d6] | 307 | <para>
|
---|
[01996ebb] | 308 | contains the <application>Polkit</application> authentication
|
---|
[b84342d6] | 309 | agent API functions.
|
---|
| 310 | </para>
|
---|
[9d3d8a8] | 311 | <indexterm zone="polkit libpolkit-agent-1">
|
---|
[b84342d6] | 312 | <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
|
---|
[9d3d8a8] | 313 | </indexterm>
|
---|
| 314 | </listitem>
|
---|
| 315 | </varlistentry>
|
---|
| 316 |
|
---|
| 317 | <varlistentry id="libpolkit-gobject-1">
|
---|
[b84342d6] | 318 | <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
|
---|
[9d3d8a8] | 319 | <listitem>
|
---|
[b84342d6] | 320 | <para>
|
---|
[01996ebb] | 321 | contains the <application>Polkit</application> authorization API functions.
|
---|
[b84342d6] | 322 | </para>
|
---|
[9d3d8a8] | 323 | <indexterm zone="polkit libpolkit-gobject-1">
|
---|
[b84342d6] | 324 | <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
|
---|
[9d3d8a8] | 325 | </indexterm>
|
---|
| 326 | </listitem>
|
---|
| 327 | </varlistentry>
|
---|
| 328 |
|
---|
| 329 | </variablelist>
|
---|
| 330 |
|
---|
| 331 | </sect2>
|
---|
| 332 |
|
---|
| 333 | </sect1>
|
---|