Example 9.1
An example /etc/PolicyKit/PolicyKit.conf file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">
❶
<config version="0.1">
❷
<match action="org.freedesktop.packagekit.system-update">
❸
<match user="tux">
<return result="yes"/>
</match>
</match>
<match action="org.freedesktop.policykit.*">
❹
<match user="tux|wilber">
<return result="no"/>
</match>
</match>
<define_admin_auth group="administrators"/>
❺
</config>
❶
The first three lines of the config file are the XML header. These lines are already
present in the template file, leave them untouched.
❷
The XML root element must always be present. The attribute
version
is
mandatory, currently the only valid value is
0.1
. Already present in the template
file.
❸
A statement granting the user tux the privilege to update packages via PackageKit
without having to authorize.
❹
Withdraw privileges for all PolicyKit related policies from the users tux and
wilber.
❺
This statement allows all members of the group
administrators
to authenti-
cate with their own password whenever authentication with the
root
password
would be required. Since this statement is not nested within constraining match
statements, it applies to all policies.
9.3.4 Restoring the Default Privileges
Each application supporting PolicyKit comes with a default set of implicit policies de-
fined by the application's developers, the so-called “upstream defaults”. The privileges
defined by the upstream defaults are not necessarily the ones that are activated by default
on SUSE Linux Enterprise Server. SUSE Linux Enterprise Server comes with a prede-
fined set of privileges (see
Section “Modifying Configuration Files for Implicit Privi-
PolicyKit
129
Summary of Contents for LINUX ENTERPRISE DESKTOP 11
Page 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Page 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Page 10: ......
Page 29: ...Part I Authentication...
Page 30: ......
Page 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Page 126: ......
Page 127: ...Part II Local Security...
Page 128: ......
Page 158: ......
Page 173: ...Part III Network Security...
Page 174: ......
Page 194: ......
Page 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Page 210: ......
Page 228: ......
Page 229: ...Part IV Confining Privileges with Novell AppArmor...
Page 230: ......
Page 274: ......
Page 300: ......
Page 328: ......
Page 340: ......
Page 342: ......
Page 386: ......
Page 387: ...Part V The Linux Audit Framework...
Page 388: ......