
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
Содержание LINUX ENTERPRISE DESKTOP 11
Страница 1: ...SUSE Linux Enterprise Server www novell com 11 March 17 2009 Security Guide...
Страница 9: ...32 7 Managing Audit Event Records Using Keys 433 33 Useful Resources 435...
Страница 10: ......
Страница 29: ...Part I Authentication...
Страница 30: ......
Страница 55: ...Figure 4 2 YaST LDAP Server Configuration LDAP A Directory Service 41...
Страница 126: ......
Страница 127: ...Part II Local Security...
Страница 128: ......
Страница 158: ......
Страница 173: ...Part III Network Security...
Страница 174: ......
Страница 194: ......
Страница 197: ...Figure 16 2 Scenario 2 Figure 16 3 Scenario 3 Configuring VPN Server 183...
Страница 210: ......
Страница 228: ......
Страница 229: ...Part IV Confining Privileges with Novell AppArmor...
Страница 230: ......
Страница 274: ......
Страница 300: ......
Страница 328: ......
Страница 340: ......
Страница 342: ......
Страница 386: ......
Страница 387: ...Part V The Linux Audit Framework...
Страница 388: ......