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