[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 " ">
|
---|
[b84342d6] | 10 | <!ENTITY polkit-md5sum "9c29e1b6c214f0bd6f1d4ee303dfaed9">
|
---|
[bb947c32] | 11 | <!ENTITY polkit-size "1.4 MB">
|
---|
[b84342d6] | 12 | <!ENTITY polkit-buildsize "20 MB">
|
---|
| 13 | <!ENTITY polkit-time "0.5 SBU">
|
---|
[9d3d8a8] | 14 | ]>
|
---|
| 15 |
|
---|
| 16 | <sect1 id="polkit" xreflabel="polkit-&polkit-version;">
|
---|
| 17 | <?dbhtml filename="polkit.html"?>
|
---|
| 18 |
|
---|
| 19 | <sect1info>
|
---|
| 20 | <othername>$LastChangedBy$</othername>
|
---|
| 21 | <date>$Date$</date>
|
---|
| 22 | </sect1info>
|
---|
| 23 |
|
---|
| 24 | <title>polkit-&polkit-version;</title>
|
---|
| 25 |
|
---|
| 26 | <indexterm zone="polkit">
|
---|
| 27 | <primary sortas="a-polkit">polkit</primary>
|
---|
| 28 | </indexterm>
|
---|
| 29 |
|
---|
| 30 | <sect2 role="package">
|
---|
| 31 | <title>Introduction to polkit</title>
|
---|
| 32 |
|
---|
[b84342d6] | 33 | <para>
|
---|
| 34 | The <application>polkit</application> package is an application-level
|
---|
| 35 | toolkit for defining and handling the policy that allows unprivileged
|
---|
| 36 | users to speak to privileged processes.
|
---|
| 37 | </para>
|
---|
[9d3d8a8] | 38 |
|
---|
[875b4070] | 39 | &lfs70_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 |
|
---|
| 75 | <bridgehead renderas="sect3">polkit Dependencies</bridgehead>
|
---|
| 76 |
|
---|
| 77 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
[bb947c32] | 78 | <para role="required">
|
---|
[4c2be438] | 79 | <xref linkend="intltool"/> and
|
---|
| 80 | <xref linkend="pkgconfig"/>
|
---|
| 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 |
|
---|
| 97 | <note>
|
---|
[b84342d6] | 98 | <para>
|
---|
| 99 | If <xref linkend="libxslt"/> is installed then <xref linkend="DocBook"/>
|
---|
| 100 | and <xref linkend="docbook-xsl"/> are required.
|
---|
| 101 | </para>
|
---|
[875b4070] | 102 | </note>
|
---|
[9d3d8a8] | 103 |
|
---|
| 104 | <para condition="html" role="usernotes">User Notes:
|
---|
| 105 | <ulink url="&blfs-wiki;/polkit"/></para>
|
---|
| 106 |
|
---|
| 107 | </sect2>
|
---|
| 108 |
|
---|
| 109 | <sect2 role="installation">
|
---|
| 110 | <title>Installation of polkit</title>
|
---|
| 111 |
|
---|
[b84342d6] | 112 | <para>
|
---|
| 113 | Install <application>polkit</application> by running the following
|
---|
| 114 | commands as an unprivileged user:
|
---|
| 115 | </para>
|
---|
[9d3d8a8] | 116 |
|
---|
[b84342d6] | 117 | <screen><userinput>./configure --prefix=/usr \
|
---|
| 118 | --sysconfdir=/etc \
|
---|
| 119 | --localstatedir=/var \
|
---|
| 120 | --libexecdir=/usr/lib/polkit-1 \
|
---|
| 121 | --with-authfw=shadow \
|
---|
| 122 | --disable-static &&
|
---|
[9d3d8a8] | 123 | make</userinput></screen>
|
---|
| 124 |
|
---|
[b84342d6] | 125 | <para>
|
---|
| 126 | This package does not come with a test suite.
|
---|
| 127 | </para>
|
---|
[9d3d8a8] | 128 |
|
---|
[b84342d6] | 129 | <para>
|
---|
| 130 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 131 | </para>
|
---|
[9d3d8a8] | 132 |
|
---|
| 133 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
| 134 |
|
---|
| 135 | </sect2>
|
---|
| 136 |
|
---|
| 137 | <sect2 role="commands">
|
---|
| 138 | <title>Command Explanations</title>
|
---|
| 139 |
|
---|
[b84342d6] | 140 | <para>
|
---|
| 141 | <parameter>--with-authfw=shadow</parameter>: This parameter will use
|
---|
| 142 | the <application>Shadow</application> rather than the
|
---|
| 143 | <application>Linux-PAM</application> Authentication framework. Remove it if
|
---|
| 144 | you would like to use <application>Linux-PAM</application>.
|
---|
| 145 | </para>
|
---|
| 146 |
|
---|
| 147 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 148 | href="../../xincludes/static-libraries.xml"/>
|
---|
[875b4070] | 149 |
|
---|
[e05cd03f] | 150 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[b84342d6] | 151 | href="../../xincludes/gtk-doc-rebuild.xml"/>
|
---|
[9d3d8a8] | 152 |
|
---|
| 153 | </sect2>
|
---|
| 154 |
|
---|
[a6bd736] | 155 | <sect2 role="configuration">
|
---|
| 156 | <title>Configuring polkit</title>
|
---|
| 157 |
|
---|
| 158 | <sect3 id="polkit-config">
|
---|
| 159 | <title>Config Files</title>
|
---|
| 160 |
|
---|
| 161 | <para><filename>/etc/polkit-1/localauthority.conf.d/*</filename></para>
|
---|
| 162 | </sect3>
|
---|
| 163 |
|
---|
| 164 | <sect3>
|
---|
| 165 | <title>PAM Configuration</title>
|
---|
| 166 |
|
---|
| 167 | <note>
|
---|
[b84342d6] | 168 | <para>
|
---|
| 169 | If you did not build <application>polkit</application> with
|
---|
| 170 | <application>Linux PAM</application> support, you can skip this section.
|
---|
[a6bd736] | 171 | </para>
|
---|
| 172 | </note>
|
---|
| 173 |
|
---|
[b84342d6] | 174 | <para>
|
---|
| 175 | If you have built <application>polkit</application> with
|
---|
| 176 | <application>Linux PAM</application> support, you need to modify
|
---|
| 177 | default PAM configuration file which was installed by default to get
|
---|
| 178 | <application>polkit</application> to work correctly with BLFS.
|
---|
| 179 | </para>
|
---|
[a6bd736] | 180 |
|
---|
[b84342d6] | 181 | <para>
|
---|
| 182 | Issue the following commands as the <systemitem class="username">root</systemitem>
|
---|
| 183 | user to create the configuration file for <application>Linux PAM</application>:
|
---|
[a6bd736] | 184 | </para>
|
---|
| 185 |
|
---|
| 186 | <screen role="root"><userinput>cat > /etc/pam.d/polkit-1 << "EOF"
|
---|
| 187 | <literal># Begin /etc/pam.d/polkit-1
|
---|
| 188 |
|
---|
| 189 | auth include system-auth
|
---|
| 190 | account include system-account
|
---|
| 191 | password include system-password
|
---|
| 192 | session include system-session
|
---|
| 193 |
|
---|
| 194 | # End /etc/pam.d/polkit-1</literal>
|
---|
| 195 | EOF</userinput></screen>
|
---|
| 196 |
|
---|
| 197 | </sect3>
|
---|
| 198 |
|
---|
| 199 | </sect2>
|
---|
| 200 |
|
---|
[9d3d8a8] | 201 | <sect2 role="content">
|
---|
| 202 | <title>Contents</title>
|
---|
| 203 |
|
---|
| 204 | <segmentedlist>
|
---|
| 205 | <segtitle>Installed Programs</segtitle>
|
---|
| 206 | <segtitle>Installed Libraries</segtitle>
|
---|
| 207 | <segtitle>Installed Directories</segtitle>
|
---|
| 208 |
|
---|
| 209 | <seglistitem>
|
---|
[b84342d6] | 210 | <seg>
|
---|
| 211 | pk-example-frobnicate, pkaction, pkcheck, pkexec,
|
---|
| 212 | pkttyagent and polkitd
|
---|
| 213 | </seg>
|
---|
| 214 | <seg>
|
---|
| 215 | libpolkit-agent-1.so, libpolkit-backend-1.so and
|
---|
| 216 | libpolkit-gobject-1.so
|
---|
| 217 | </seg>
|
---|
| 218 | <seg>
|
---|
| 219 | /etc/polkit-1, /usr/include/polkit-1, /usr/lib/polkit-1,
|
---|
| 220 | /usr/share/polkit-1 and /var/lib/polkit-1
|
---|
| 221 | </seg>
|
---|
[9d3d8a8] | 222 | </seglistitem>
|
---|
| 223 | </segmentedlist>
|
---|
| 224 |
|
---|
| 225 | <variablelist>
|
---|
| 226 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 227 | <?dbfo list-presentation="list"?>
|
---|
| 228 | <?dbhtml list-presentation="table"?>
|
---|
| 229 |
|
---|
[875b4070] | 230 | <!-- <varlistentry id="pk-example-frobnicate">
|
---|
| 231 | <term><command>pk-example-frobnicate</command></term>
|
---|
| 232 | <listitem>
|
---|
[b84342d6] | 233 | <para>
|
---|
| 234 | does this .....
|
---|
| 235 | </para>
|
---|
[875b4070] | 236 | <indexterm zone="polkit pk-example-frobnicate">
|
---|
| 237 | <primary sortas="b-pk-example-frobnicate">pk-example-frobnicate</primary>
|
---|
| 238 | </indexterm>
|
---|
| 239 | </listitem>
|
---|
| 240 | </varlistentry>-->
|
---|
| 241 |
|
---|
[9d3d8a8] | 242 | <varlistentry id="pkaction">
|
---|
| 243 | <term><command>pkaction</command></term>
|
---|
| 244 | <listitem>
|
---|
[b84342d6] | 245 | <para>
|
---|
| 246 | is used to obtain information about registered PolicyKit actions.
|
---|
| 247 | </para>
|
---|
[9d3d8a8] | 248 | <indexterm zone="polkit pkaction">
|
---|
| 249 | <primary sortas="b-pkaction">pkaction</primary>
|
---|
| 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
| 254 | <varlistentry id="pkcheck">
|
---|
| 255 | <term><command>pkcheck</command></term>
|
---|
| 256 | <listitem>
|
---|
[b84342d6] | 257 | <para>
|
---|
| 258 | is used to check whether a process is authorized for action.
|
---|
| 259 | </para>
|
---|
[9d3d8a8] | 260 | <indexterm zone="polkit pkcheck">
|
---|
| 261 | <primary sortas="b-pkcheck">pkcheck</primary>
|
---|
| 262 | </indexterm>
|
---|
| 263 | </listitem>
|
---|
| 264 | </varlistentry>
|
---|
| 265 |
|
---|
| 266 | <varlistentry id="pkexec">
|
---|
| 267 | <term><command>pkexec</command></term>
|
---|
| 268 | <listitem>
|
---|
[b84342d6] | 269 | <para>
|
---|
| 270 | allows an authorized user to execute a command as another user.
|
---|
| 271 | </para>
|
---|
[9d3d8a8] | 272 | <indexterm zone="polkit pkexec">
|
---|
| 273 | <primary sortas="b-pkexec">pkexec</primary>
|
---|
| 274 | </indexterm>
|
---|
| 275 | </listitem>
|
---|
| 276 | </varlistentry>
|
---|
| 277 |
|
---|
[b84342d6] | 278 | <varlistentry id="pkttyagent">
|
---|
| 279 | <term><command>pkttyagent</command></term>
|
---|
[9d3d8a8] | 280 | <listitem>
|
---|
[b84342d6] | 281 | <para>
|
---|
| 282 | is used to start a textual authentication agent for the subject.
|
---|
| 283 | </para>
|
---|
| 284 | <indexterm zone="polkit pkttyagent">
|
---|
| 285 | <primary sortas="b-pkttyagent">pkttyagent</primary>
|
---|
[9d3d8a8] | 286 | </indexterm>
|
---|
| 287 | </listitem>
|
---|
[b84342d6] | 288 | </varlistentry>
|
---|
[9d3d8a8] | 289 |
|
---|
[875b4070] | 290 | <varlistentry id="polkitd">
|
---|
[9d3d8a8] | 291 | <term><command>polkitd</command></term>
|
---|
| 292 | <listitem>
|
---|
[b84342d6] | 293 | <para>
|
---|
| 294 | provides the org.freedesktop.PolicyKit1 <application>D-Bus</application>
|
---|
| 295 | service on the system message bus.
|
---|
| 296 | </para>
|
---|
[875b4070] | 297 | <indexterm zone="polkit polkitd">
|
---|
[9d3d8a8] | 298 | <primary sortas="b-polkitd">polkitd</primary>
|
---|
| 299 | </indexterm>
|
---|
| 300 | </listitem>
|
---|
| 301 | </varlistentry>
|
---|
| 302 |
|
---|
| 303 | <varlistentry id="libpolkit-agent-1">
|
---|
[b84342d6] | 304 | <term><filename class='libraryfile'>libpolkit-agent-1.so</filename></term>
|
---|
[9d3d8a8] | 305 | <listitem>
|
---|
[b84342d6] | 306 | <para>
|
---|
| 307 | contains the <application>polkit</application> authentication
|
---|
| 308 | agent API functions.
|
---|
| 309 | </para>
|
---|
[9d3d8a8] | 310 | <indexterm zone="polkit libpolkit-agent-1">
|
---|
[b84342d6] | 311 | <primary sortas="c-libpolkit-agent-1">libpolkit-agent-1.so</primary>
|
---|
[9d3d8a8] | 312 | </indexterm>
|
---|
| 313 | </listitem>
|
---|
| 314 | </varlistentry>
|
---|
| 315 |
|
---|
| 316 | <varlistentry id="libpolkit-backend-1">
|
---|
[b84342d6] | 317 | <term><filename class='libraryfile'>libpolkit-backend-1.so</filename></term>
|
---|
[9d3d8a8] | 318 | <listitem>
|
---|
[b84342d6] | 319 | <para>
|
---|
| 320 | contains the <application>polkit</application> backend API functions.
|
---|
| 321 | </para>
|
---|
[9d3d8a8] | 322 | <indexterm zone="polkit libpolkit-backend-1">
|
---|
[b84342d6] | 323 | <primary sortas="c-libpolkit-backend-1">libpolkit-backend-1.so</primary>
|
---|
[9d3d8a8] | 324 | </indexterm>
|
---|
| 325 | </listitem>
|
---|
| 326 | </varlistentry>
|
---|
| 327 |
|
---|
| 328 | <varlistentry id="libpolkit-gobject-1">
|
---|
[b84342d6] | 329 | <term><filename class='libraryfile'>libpolkit-gobject-1.so</filename></term>
|
---|
[9d3d8a8] | 330 | <listitem>
|
---|
[b84342d6] | 331 | <para>
|
---|
| 332 | contains the <application>polkit</application> authorization API functions.
|
---|
| 333 | </para>
|
---|
[9d3d8a8] | 334 | <indexterm zone="polkit libpolkit-gobject-1">
|
---|
[b84342d6] | 335 | <primary sortas="c-libpolkit-gobject-1">libpolkit-gobject-1.so</primary>
|
---|
[9d3d8a8] | 336 | </indexterm>
|
---|
| 337 | </listitem>
|
---|
| 338 | </varlistentry>
|
---|
| 339 |
|
---|
| 340 | </variablelist>
|
---|
| 341 |
|
---|
| 342 | </sect2>
|
---|
| 343 |
|
---|
| 344 | </sect1>
|
---|