glfs/postlfs/security/polkit-gnome.xml
2024-02-16 13:11:29 -06:00

205 lines
5.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY polkit-gnome-download-http
"&gnome-download-http;/polkit-gnome/&polkit-gnome-version;/polkit-gnome-&polkit-gnome-version;.tar.xz">
<!ENTITY polkit-gnome-download-ftp " ">
<!ENTITY polkit-gnome-md5sum "50ecad37c8342fb4a52f590db7530621">
<!ENTITY polkit-gnome-size "305 KB">
<!ENTITY polkit-gnome-buildsize "5.0 MB">
<!ENTITY polkit-gnome-time "0.1 SBU">
]>
<sect1 id="polkit-gnome" xreflabel="polkit-gnome-&polkit-gnome-version;">
<?dbhtml filename="polkit-gnome.html"?>
<title>polkit-gnome-&polkit-gnome-version;</title>
<indexterm zone="polkit-gnome">
<primary sortas="a-polkit-gnome">polkit-gnome</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to Polkit GNOME</title>
<para>
The <application>Polkit GNOME</application> package provides an
Authentication Agent for <application>Polkit</application> that integrates
well with the <application>GNOME</application> Desktop environment.
</para>
&lfs121_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&polkit-gnome-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&polkit-gnome-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &polkit-gnome-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &polkit-gnome-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &polkit-gnome-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &polkit-gnome-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Required patch:
<ulink url="&patch-root;/polkit-gnome-&polkit-gnome-version;-consolidated_fixes-1.patch"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Polkit GNOME Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<!-- due to the patch -->
<xref linkend="accountsservice"/>,
<xref linkend="gtk3"/>, and
<xref linkend="polkit"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of Polkit GNOME</title>
<para>
First, apply some fixes that allow for the proper user icon to be used,
as well as some security fixes:
</para>
<screen><userinput remap="pre">patch -Np1 -i ../polkit-gnome-&polkit-gnome-version;-consolidated_fixes-1.patch</userinput></screen>
<para>
Install <application>Polkit GNOME</application> by running the following
commands:
</para>
<screen><userinput>./configure --prefix=/usr &amp;&amp;
make</userinput></screen>
<para>
This package does not come with a test suite.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="configuration">
<title>Configuring Polkit GNOME</title>
<sect3>
<title>Automatic Startup</title>
<para>
For the authentication framework to work,
<command>polkit-gnome-authentication-agent-1</command> needs to be
started. However, <command>make install</command> did not
install a startup file for the <application>Polkit GNOME</application>
so you have to create it by yourself.
</para>
<para>
Issue the following commands as the
<systemitem class="username">root</systemitem> user to create
a startup file for <application>Polkit GNOME</application>:
</para>
<screen role="root"><userinput>mkdir -p /etc/xdg/autostart &amp;&amp;
cat &gt; /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop &lt;&lt; "EOF"
<literal>[Desktop Entry]
Name=PolicyKit Authentication Agent
Comment=PolicyKit Authentication Agent
Exec=/usr/libexec/polkit-gnome-authentication-agent-1
Terminal=false
Type=Application
Categories=
NoDisplay=true
OnlyShowIn=GNOME;XFCE;Unity;
AutostartCondition=GNOME3 unless-session gnome</literal>
EOF</userinput></screen>
</sect3>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Program</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>
polkit-gnome-authentication-agent-1
</seg>
<seg>
None
</seg>
<seg>
None
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="polkit-gnome-authentication-agent-1">
<term><command>polkit-gnome-authentication-agent-1</command></term>
<listitem>
<para>
is the <application>Polkit</application> authentication agent
</para>
<indexterm zone="polkit-gnome polkit-gnome-authentication-agent-1">
<primary sortas="b-polkit-gnome-authentication-agent-1">polkit-gnome-authentication-agent-1</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>