[BLFS Trac] #2680: New package: PolicyKit

BLFS Trac trac at linuxfromscratch.org
Thu Dec 4 12:57:09 PST 2008


#2680: New package: PolicyKit
-------------------------+--------------------------------------------------
 Reporter:  channelzero  |       Owner:  blfs-book at linuxfromscratch.org
     Type:  enhancement  |      Status:  new                           
 Priority:  normal       |   Milestone:  future                        
Component:  BOOK         |     Version:  SVN                           
 Severity:  normal       |    Keywords:                                
-------------------------+--------------------------------------------------
 From README:
 PolicyKit is an authorization framework. It is typically used by
 privileged user space daemons to control access.

 Homepage:
 http://www.freedesktop.org/wiki/Software/PolicyKit

 Advantage: in desktop-environments like gnome unprivileged
 daemons/programs need access
 to privileged actions, PK makes it possible to fine tune these access
 policies.
 Todays stable gnome 2.24.0 does already use PK, in favor of distro-
 specific tools.
 With PK and ConsoleKit it is possible to have a desktop-system without the
 need to
 log in as root.

 Nitpick: there is a configure switch --with-os-type, distro-specific stuff

 Dependencies:
  dbus, glib, dbus-glib, pam, perl, XML::Parser, intltool

 Installation:
 create polkit user and group:

 {{{
  groupadd -g 20 polkituser
  useradd -c "PolicyKit User" -d /dev/null -u 20 -g polkituser -s
 /bin/false polkituser
 }}}

 {{{
 ./configure --prefix=/usr --sysconfdir=/etc
 --libexecdir=/usr/lib/PolicyKit --localstatedir=/var
 make
 make install
 }}}

 Configuration:[[BR]]
 this grants user foo all access[[BR]]

 /etc/PolicyKit/PolicyKit.conf[[BR]]
 <?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

 <!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration
 1.0//EN"
 "http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

 <!-- See the manual page PolicyKit.conf(5) for file format -->

 <config version="0.1">
            <match user="foo">
              <return result="yes"/>
            </match>

 </config>

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2680>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch



More information about the blfs-book mailing list