hal: Branch 'master'

David Zeuthen david at kemper.freedesktop.org
Mon Mar 3 18:09:07 PST 2008


 policy/Makefile.am                                 |   14 +-
 policy/hal-device-file.policy                      |  101 -----------------
 policy/hal-killswitch.policy                       |   46 --------
 policy/hal-lock.policy                             |   28 ----
 policy/hal-power.policy                            |  118 ---------------------
 policy/hal-storage.policy                          |   73 ------------
 policy/hal-wol.policy                              |   35 ------
 policy/org.freedesktop.hal.device-access.policy    |  101 +++++++++++++++++
 policy/org.freedesktop.hal.killswitch.policy       |   46 ++++++++
 policy/org.freedesktop.hal.policy                  |   28 ++++
 policy/org.freedesktop.hal.power-management.policy |  118 +++++++++++++++++++++
 policy/org.freedesktop.hal.storage.policy          |   73 ++++++++++++
 policy/org.freedesktop.hal.wol.policy              |   35 ++++++
 13 files changed, 408 insertions(+), 408 deletions(-)

New commits:
commit b6e8d3c14b0c59ed6b7a0a460b261f1acf0f1633
Author: David Zeuthen <davidz at redhat.com>
Date:   Mon Mar 3 21:07:38 2008 -0500

    fix warnings from polkit-policy-file-validate when using PolicyKit HEAD
    
    See this commit for details
    
    http://gitweb.freedesktop.org/?p=PolicyKit.git;a=commitdiff;h=2b1a2a69f6366534609a0671f3f2e92369cb3fa1

diff --git a/policy/Makefile.am b/policy/Makefile.am
index f3bcee6..a5a87d7 100644
--- a/policy/Makefile.am
+++ b/policy/Makefile.am
@@ -2,15 +2,15 @@
 if HAVE_POLKIT
 polkit_policydir = $(datadir)/PolicyKit/policy
 
-dist_polkit_policy_DATA =    \
-	hal-lock.policy		\
-	hal-storage.policy	\
-	hal-power.policy	\
-	hal-killswitch.policy	\
-	hal-wol.policy
+dist_polkit_policy_DATA =    				\
+	org.freedesktop.hal.policy			\
+	org.freedesktop.hal.storage.policy		\
+	org.freedesktop.hal.power-management.policy	\
+	org.freedesktop.hal.killswitch.policy		\
+	org.freedesktop.hal.wol.policy
 
 if HAVE_ACLMGMT
-dist_polkit_policy_DATA += hal-device-file.policy
+dist_polkit_policy_DATA += org.freedesktop.hal.device-access.policy
 endif
 
 check:
diff --git a/policy/hal-device-file.policy b/policy/hal-device-file.policy
deleted file mode 100644
index 12027b9..0000000
--- a/policy/hal-device-file.policy
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE policyconfig PUBLIC
- "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
- "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
-
-<!-- 
-Policy definitions for HAL's ACL Management mechanism
-
-Copyright (c) 2007 David Zeuthen <david at fubar.dk>
-
-HAL is licensed to you under your choice of the the Academic Free
-License Version 2.1, or the GNU General Public License version 2. Some
-individual source files may be under the GPL only. See COPYING for
-details.
--->
-
-<policyconfig>
-
-  <action id="org.freedesktop.hal.device-access.sound">
-    <description>Directly access sound devices</description>
-    <message>System policy prevents access to the sound devices</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.device-access.video4linux">
-    <description>Directly access video capture devices</description>
-    <message>System policy prevents access to video capture devices</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.device-access.cdrom">
-    <description>Directly access optical drives</description>
-    <message>System policy prevents access to optical drives</message>
-    <defaults>
-      <allow_inactive>yes</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.device-access.dvb">
-    <description>Directly access DVB devices</description>
-    <message>System policy prevents access to DVB devices</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.device-access.camera">
-    <description>Directly access digital cameras</description>
-    <message>System policy prevents access to digital cameras</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.device-access.scanner">
-    <description>Directly access scanners</description>
-    <message>System policy prevents access to scanners</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-  <action id="org.freedesktop.hal.device-access.audio-player">
-    <description>Directly access audio players</description>
-    <message>System policy prevents access to audio players</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-  
-  <action id="org.freedesktop.hal.device-access.ieee1394-iidc">
-    <description>Directly access Firewire IIDC devices</description>
-    <message>System policy prevents access to Firewire IIDC devices</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.device-access.ieee1394-avc">
-    <description>Directly access Firewire AVC devices</description>
-    <message>System policy prevents access to Firewire AVC devices</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-</policyconfig>
diff --git a/policy/hal-killswitch.policy b/policy/hal-killswitch.policy
deleted file mode 100644
index 713bb0d..0000000
--- a/policy/hal-killswitch.policy
+++ /dev/null
@@ -1,46 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE policyconfig PUBLIC
- "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
- "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
-
-<!-- 
-Policy definitions for HAL's RF kill switch mechanism
-
-Copyright (c) 2007 David Zeuthen <david at fubar.dk>
-
-HAL is licensed to you under your choice of the the Academic Free
-License Version 2.1, or the GNU General Public License version 2. Some
-individual source files may be under the GPL only. See COPYING for
-details.
--->
-
-<policyconfig>
-
-  <action id="org.freedesktop.hal.killswitch.bluetooth">
-    <description>Turn Bluetooth radio On/Off</description>
-    <message>System policy prevents turning the Bluetooth radio On/Off</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.killswitch.wlan">
-    <description>Turn WLAN radio On/Off</description>
-    <message>System policy prevents turning the WLAN radio On/Off</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-  <action id="org.freedesktop.hal.killswitch.wwan">
-    <description>Turn WWAN radio On/Off</description>
-    <message>System policy prevents turning the WWAN radio On/Off</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-</policyconfig>
diff --git a/policy/hal-lock.policy b/policy/hal-lock.policy
deleted file mode 100644
index 6789a4a..0000000
--- a/policy/hal-lock.policy
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE policyconfig PUBLIC
- "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
- "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
-
-<!-- 
-Policy definitions for HAL's locking mechanism
-
-Copyright (c) 2007 David Zeuthen <david at fubar.dk>
-
-HAL is licensed to you under your choice of the the Academic Free
-License Version 2.1, or the GNU General Public License version 2. Some
-individual source files may be under the GPL only. See COPYING for
-details.
--->
-
-<policyconfig>
-
-  <action id="org.freedesktop.hal.lock">
-    <description>Acquire locks on devices</description>
-    <message>System policy prevents locking devices</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-</policyconfig>
diff --git a/policy/hal-power.policy b/policy/hal-power.policy
deleted file mode 100644
index f0ee7fd..0000000
--- a/policy/hal-power.policy
+++ /dev/null
@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE policyconfig PUBLIC
- "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
- "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
-
-<!-- 
-Policy definitions for HAL's ACL Management mechanism
-
-Copyright (c) 2007 David Zeuthen <david at fubar.dk>
-
-HAL is licensed to you under your choice of the the Academic Free
-License Version 2.1, or the GNU General Public License version 2. Some
-individual source files may be under the GPL only. See COPYING for
-details.
--->
-
-<policyconfig>
-
-  <action id="org.freedesktop.hal.power-management.shutdown">
-    <description>Shut down the system</description>
-    <message>System policy prevents shutting down the system</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.shutdown-multiple-sessions">
-    <description>Shut down the system when multiple users are logged in</description>
-    <message>System policy prevents shutting down the system while multiple users are logged in</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>auth_admin</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.reboot">
-    <description>Reboot the system</description>
-    <message>System policy prevents rebooting the system</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.reboot-multiple-sessions">
-    <description>Reboot the system when multiple users are logged in</description>
-    <message>System policy prevents rebooting the system while multiple users are logged in</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>auth_admin</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.set-powersave">
-    <description>Configure to system to prefer power savings</description>
-    <message>System policy prevents enabling power savings</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.suspend">
-    <description>Suspend the system</description>
-    <message>System policy prevents suspending the system</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.hibernate">
-    <description>Hibernate the system</description>
-    <message>System policy prevents hibernating the system</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.cpufreq">
-    <description>Configure CPU frequency scaling</description>
-    <message>System policy prevents CPU frequency scaling to be configured</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.lcd-panel">
-    <description>Set laptop panel brightness</description>
-    <message>System policy prevents adjusting the laptop panel brightness</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.light-sensor">
-    <description>Detect ambient light using light sensor</description>
-    <message>System policy prevents accessing the ambient light sensor</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.power-management.keyboard-backlight">
-    <description>Set keyboard backlight</description>
-    <message>System policy prevents adjusting the keyboard backlight</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-</policyconfig>
diff --git a/policy/hal-storage.policy b/policy/hal-storage.policy
deleted file mode 100644
index 656b955..0000000
--- a/policy/hal-storage.policy
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE policyconfig PUBLIC
- "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
- "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
-
-<!-- 
-Policy definitions for HAL's drives/media mechanims.
-
-Copyright (c) 2007 David Zeuthen <david at fubar.dk>
-
-HAL is licensed to you under your choice of the the Academic Free
-License Version 2.1, or the GNU General Public License version 2. Some
-individual source files may be under the GPL only. See COPYING for
-details.
--->
-
-<policyconfig>
-
-  <action id="org.freedesktop.hal.storage.mount-fixed">
-    <description>Mount file systems from internal drives.</description>
-    <message>System policy prevents mounting internal media</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>auth_admin_keep_always</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.storage.mount-removable">
-    <description>Mount file systems from removable drives.</description>
-    <message>System policy prevents mounting removable media</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.storage.unmount-others">
-    <description>Unmount file systems mounted by other users.</description>
-    <message>System policy prevents unmounting media mounted by other users</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>auth_admin_keep_always</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.storage.eject">
-    <description>Eject removable media.</description>
-    <message>System policy prevents ejecting removable media</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-  
-  <action id="org.freedesktop.hal.storage.crypto-setup-fixed">
-    <description>Set up decryption for encrypted storage devices.</description>
-    <message>System policy prevents accessing encrypted fixed media</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>auth_admin_keep_always</allow_active>
-    </defaults>
-  </action>
-
-  <action id="org.freedesktop.hal.storage.crypto-setup-removable">
-    <description>Set up decryption for encrypted storage devices.</description>
-    <message>System policy prevents accessing encrypted removable media</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-</policyconfig>
diff --git a/policy/hal-wol.policy b/policy/hal-wol.policy
deleted file mode 100644
index e9fbd47..0000000
--- a/policy/hal-wol.policy
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE policyconfig PUBLIC
- "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
- "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
-
-<policyconfig>
-
-  <action id="org.freedesktop.hal.wol.enabled">
-    <description>If Wake on LAN is enabled</description>
-    <message>System policy prevents checking if Wake on LAN is enabled</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-  <action id="org.freedesktop.hal.wol.enable">
-    <description>Enable or disable Wake on LAN</description>
-    <message>System policy prevents enabling or disabling Wake on LAN</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-  <action id="org.freedesktop.hal.wol.supported">
-    <description>If Wake on LAN is supported</description>
-    <message>System policy prevents checking if Wake on LAN is supported</message>
-    <defaults>
-      <allow_inactive>no</allow_inactive>
-      <allow_active>yes</allow_active>
-    </defaults>
-  </action>
-
-</policyconfig>
diff --git a/policy/org.freedesktop.hal.device-access.policy b/policy/org.freedesktop.hal.device-access.policy
new file mode 100644
index 0000000..12027b9
--- /dev/null
+++ b/policy/org.freedesktop.hal.device-access.policy
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
+
+<!-- 
+Policy definitions for HAL's ACL Management mechanism
+
+Copyright (c) 2007 David Zeuthen <david at fubar.dk>
+
+HAL is licensed to you under your choice of the the Academic Free
+License Version 2.1, or the GNU General Public License version 2. Some
+individual source files may be under the GPL only. See COPYING for
+details.
+-->
+
+<policyconfig>
+
+  <action id="org.freedesktop.hal.device-access.sound">
+    <description>Directly access sound devices</description>
+    <message>System policy prevents access to the sound devices</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.device-access.video4linux">
+    <description>Directly access video capture devices</description>
+    <message>System policy prevents access to video capture devices</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.device-access.cdrom">
+    <description>Directly access optical drives</description>
+    <message>System policy prevents access to optical drives</message>
+    <defaults>
+      <allow_inactive>yes</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.device-access.dvb">
+    <description>Directly access DVB devices</description>
+    <message>System policy prevents access to DVB devices</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.device-access.camera">
+    <description>Directly access digital cameras</description>
+    <message>System policy prevents access to digital cameras</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.device-access.scanner">
+    <description>Directly access scanners</description>
+    <message>System policy prevents access to scanners</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+  <action id="org.freedesktop.hal.device-access.audio-player">
+    <description>Directly access audio players</description>
+    <message>System policy prevents access to audio players</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+  
+  <action id="org.freedesktop.hal.device-access.ieee1394-iidc">
+    <description>Directly access Firewire IIDC devices</description>
+    <message>System policy prevents access to Firewire IIDC devices</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.device-access.ieee1394-avc">
+    <description>Directly access Firewire AVC devices</description>
+    <message>System policy prevents access to Firewire AVC devices</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+</policyconfig>
diff --git a/policy/org.freedesktop.hal.killswitch.policy b/policy/org.freedesktop.hal.killswitch.policy
new file mode 100644
index 0000000..713bb0d
--- /dev/null
+++ b/policy/org.freedesktop.hal.killswitch.policy
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
+
+<!-- 
+Policy definitions for HAL's RF kill switch mechanism
+
+Copyright (c) 2007 David Zeuthen <david at fubar.dk>
+
+HAL is licensed to you under your choice of the the Academic Free
+License Version 2.1, or the GNU General Public License version 2. Some
+individual source files may be under the GPL only. See COPYING for
+details.
+-->
+
+<policyconfig>
+
+  <action id="org.freedesktop.hal.killswitch.bluetooth">
+    <description>Turn Bluetooth radio On/Off</description>
+    <message>System policy prevents turning the Bluetooth radio On/Off</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.killswitch.wlan">
+    <description>Turn WLAN radio On/Off</description>
+    <message>System policy prevents turning the WLAN radio On/Off</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+  <action id="org.freedesktop.hal.killswitch.wwan">
+    <description>Turn WWAN radio On/Off</description>
+    <message>System policy prevents turning the WWAN radio On/Off</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+</policyconfig>
diff --git a/policy/org.freedesktop.hal.policy b/policy/org.freedesktop.hal.policy
new file mode 100644
index 0000000..6789a4a
--- /dev/null
+++ b/policy/org.freedesktop.hal.policy
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
+
+<!-- 
+Policy definitions for HAL's locking mechanism
+
+Copyright (c) 2007 David Zeuthen <david at fubar.dk>
+
+HAL is licensed to you under your choice of the the Academic Free
+License Version 2.1, or the GNU General Public License version 2. Some
+individual source files may be under the GPL only. See COPYING for
+details.
+-->
+
+<policyconfig>
+
+  <action id="org.freedesktop.hal.lock">
+    <description>Acquire locks on devices</description>
+    <message>System policy prevents locking devices</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+</policyconfig>
diff --git a/policy/org.freedesktop.hal.power-management.policy b/policy/org.freedesktop.hal.power-management.policy
new file mode 100644
index 0000000..f0ee7fd
--- /dev/null
+++ b/policy/org.freedesktop.hal.power-management.policy
@@ -0,0 +1,118 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
+
+<!-- 
+Policy definitions for HAL's ACL Management mechanism
+
+Copyright (c) 2007 David Zeuthen <david at fubar.dk>
+
+HAL is licensed to you under your choice of the the Academic Free
+License Version 2.1, or the GNU General Public License version 2. Some
+individual source files may be under the GPL only. See COPYING for
+details.
+-->
+
+<policyconfig>
+
+  <action id="org.freedesktop.hal.power-management.shutdown">
+    <description>Shut down the system</description>
+    <message>System policy prevents shutting down the system</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.shutdown-multiple-sessions">
+    <description>Shut down the system when multiple users are logged in</description>
+    <message>System policy prevents shutting down the system while multiple users are logged in</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>auth_admin</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.reboot">
+    <description>Reboot the system</description>
+    <message>System policy prevents rebooting the system</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.reboot-multiple-sessions">
+    <description>Reboot the system when multiple users are logged in</description>
+    <message>System policy prevents rebooting the system while multiple users are logged in</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>auth_admin</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.set-powersave">
+    <description>Configure to system to prefer power savings</description>
+    <message>System policy prevents enabling power savings</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.suspend">
+    <description>Suspend the system</description>
+    <message>System policy prevents suspending the system</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.hibernate">
+    <description>Hibernate the system</description>
+    <message>System policy prevents hibernating the system</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.cpufreq">
+    <description>Configure CPU frequency scaling</description>
+    <message>System policy prevents CPU frequency scaling to be configured</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.lcd-panel">
+    <description>Set laptop panel brightness</description>
+    <message>System policy prevents adjusting the laptop panel brightness</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.light-sensor">
+    <description>Detect ambient light using light sensor</description>
+    <message>System policy prevents accessing the ambient light sensor</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.power-management.keyboard-backlight">
+    <description>Set keyboard backlight</description>
+    <message>System policy prevents adjusting the keyboard backlight</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+</policyconfig>
diff --git a/policy/org.freedesktop.hal.storage.policy b/policy/org.freedesktop.hal.storage.policy
new file mode 100644
index 0000000..656b955
--- /dev/null
+++ b/policy/org.freedesktop.hal.storage.policy
@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
+
+<!-- 
+Policy definitions for HAL's drives/media mechanims.
+
+Copyright (c) 2007 David Zeuthen <david at fubar.dk>
+
+HAL is licensed to you under your choice of the the Academic Free
+License Version 2.1, or the GNU General Public License version 2. Some
+individual source files may be under the GPL only. See COPYING for
+details.
+-->
+
+<policyconfig>
+
+  <action id="org.freedesktop.hal.storage.mount-fixed">
+    <description>Mount file systems from internal drives.</description>
+    <message>System policy prevents mounting internal media</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>auth_admin_keep_always</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.storage.mount-removable">
+    <description>Mount file systems from removable drives.</description>
+    <message>System policy prevents mounting removable media</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.storage.unmount-others">
+    <description>Unmount file systems mounted by other users.</description>
+    <message>System policy prevents unmounting media mounted by other users</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>auth_admin_keep_always</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.storage.eject">
+    <description>Eject removable media.</description>
+    <message>System policy prevents ejecting removable media</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+  
+  <action id="org.freedesktop.hal.storage.crypto-setup-fixed">
+    <description>Set up decryption for encrypted storage devices.</description>
+    <message>System policy prevents accessing encrypted fixed media</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>auth_admin_keep_always</allow_active>
+    </defaults>
+  </action>
+
+  <action id="org.freedesktop.hal.storage.crypto-setup-removable">
+    <description>Set up decryption for encrypted storage devices.</description>
+    <message>System policy prevents accessing encrypted removable media</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+</policyconfig>
diff --git a/policy/org.freedesktop.hal.wol.policy b/policy/org.freedesktop.hal.wol.policy
new file mode 100644
index 0000000..e9fbd47
--- /dev/null
+++ b/policy/org.freedesktop.hal.wol.policy
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE policyconfig PUBLIC
+ "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
+
+<policyconfig>
+
+  <action id="org.freedesktop.hal.wol.enabled">
+    <description>If Wake on LAN is enabled</description>
+    <message>System policy prevents checking if Wake on LAN is enabled</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+  <action id="org.freedesktop.hal.wol.enable">
+    <description>Enable or disable Wake on LAN</description>
+    <message>System policy prevents enabling or disabling Wake on LAN</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+  <action id="org.freedesktop.hal.wol.supported">
+    <description>If Wake on LAN is supported</description>
+    <message>System policy prevents checking if Wake on LAN is supported</message>
+    <defaults>
+      <allow_inactive>no</allow_inactive>
+      <allow_active>yes</allow_active>
+    </defaults>
+  </action>
+
+</policyconfig>


More information about the hal-commit mailing list