#### Beyond Linux® From Scratch (systemd Edition) - Version r13.0-491

### Chapter 4. Security

- Prev

  Polkit-127

- Next

  Shadow-4.19.4

- Up
- Home

# polkit-gnome-0.105

## Introduction to Polkit GNOME

The Polkit GNOME package provides an Authentication Agent for Polkit that integrates well with the GNOME Desktop environment.

### Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

### Package Information

- Download (HTTP): https://download.gnome.org/sources/polkit-gnome/0.105/polkit-gnome-0.105.tar.xz

- Download MD5 sum: 50ecad37c8342fb4a52f590db7530621

- Download size: 305 KB

- Estimated disk space required: 5.0 MB

- Estimated build time: 0.1 SBU

### Additional Downloads

- Required patch: https://www.linuxfromscratch.org/patches/blfs/svn/polkit-gnome-0.105-consolidated_fixes-1.patch

### Polkit GNOME Dependencies

#### Required

AccountsService-23.13.9, GTK-3.24.52, Intltool-0.51.0, and Polkit-127

## Installation of Polkit GNOME

First, apply some fixes that allow for the proper user icon to be used, as well as some security fixes:

    patch -Np1 -i ../polkit-gnome-0.105-consolidated_fixes-1.patch

Install Polkit GNOME by running the following commands:

    ./configure --prefix=/usr &&
    make

This package does not come with a test suite.

Now, as the `root` user:

    make install

## Configuring Polkit GNOME

### Automatic Startup

For the authentication framework to work, polkit-gnome-authentication-agent-1 needs to be started. However, make install did not install a startup file for the Polkit GNOME so you have to create it by yourself.

Issue the following commands as the `root` user to create a startup file for Polkit GNOME:

    mkdir -p /etc/xdg/autostart &&
    cat > /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop << "EOF"
    [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
    EOF

## Contents

Installed Program: polkit-gnome-authentication-agent-1
Installed Libraries: None
Installed Directory: None

### Short Descriptions

polkit-gnome-authentication-agent-1 | is the Polkit authentication agent

- Prev

  Polkit-127

- Next

  Shadow-4.19.4

- Up
- Home