hal: Branch 'master'
David Zeuthen
david at kemper.freedesktop.org
Wed Jul 25 16:28:42 PDT 2007
policy/hal-device-file.policy | 8 ++++++++
policy/hal-killswitch.policy | 2 ++
policy/hal-lock.policy | 1 +
policy/hal-power.policy | 11 +++++++++++
policy/hal-storage.policy | 5 +++++
5 files changed, 27 insertions(+)
New commits:
diff-tree a4711146e3249cba3feb8b6a37a09083bf1c08d7 (from 7c3e2496491a27e29bfd75643b30a05cf1c8435b)
Author: David Zeuthen <davidz at redhat.com>
Date: Wed Jul 25 19:28:40 2007 -0400
include <message> elements in PK policy files
For details, see
http://gitweb.freedesktop.org/?p=PolicyKit.git;a=commit;h=e833c740cb2b124e451b028637148bc829c3c650
diff --git a/policy/hal-device-file.policy b/policy/hal-device-file.policy
index 7a36152..e3289b4 100644
--- a/policy/hal-device-file.policy
+++ b/policy/hal-device-file.policy
@@ -23,6 +23,7 @@ file are instantly applied.
<policy id="hal-device-file-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>
@@ -31,6 +32,7 @@ file are instantly applied.
<policy id="hal-device-file-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>
@@ -39,6 +41,7 @@ file are instantly applied.
<policy id="hal-device-file-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>
@@ -47,6 +50,7 @@ file are instantly applied.
<policy id="hal-device-file-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>
@@ -55,6 +59,7 @@ file are instantly applied.
<policy id="hal-device-file-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>
@@ -63,6 +68,7 @@ file are instantly applied.
<policy id="hal-device-file-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>
@@ -71,6 +77,7 @@ file are instantly applied.
<policy id="hal-device-file-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>
@@ -79,6 +86,7 @@ file are instantly applied.
<policy id="hal-device-file-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>
diff --git a/policy/hal-killswitch.policy b/policy/hal-killswitch.policy
index cae6241..c658cdc 100644
--- a/policy/hal-killswitch.policy
+++ b/policy/hal-killswitch.policy
@@ -23,6 +23,7 @@ file are instantly applied.
<policy id="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>
@@ -31,6 +32,7 @@ file are instantly applied.
<policy id="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>
diff --git a/policy/hal-lock.policy b/policy/hal-lock.policy
index d3aeb92..161d30d 100644
--- a/policy/hal-lock.policy
+++ b/policy/hal-lock.policy
@@ -23,6 +23,7 @@ file are instantly applied.
<policy id="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>
diff --git a/policy/hal-power.policy b/policy/hal-power.policy
index 22ba21b..ffc1a7f 100644
--- a/policy/hal-power.policy
+++ b/policy/hal-power.policy
@@ -23,6 +23,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -31,6 +32,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -39,6 +41,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -47,6 +50,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -55,6 +59,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -63,6 +68,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -71,6 +77,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -79,6 +86,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -87,6 +95,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -95,6 +104,7 @@ file are instantly applied.
<policy id="hal-power-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>
@@ -103,6 +113,7 @@ file are instantly applied.
<policy id="hal-power-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>
diff --git a/policy/hal-storage.policy b/policy/hal-storage.policy
index 1674dcd..8f2e54c 100644
--- a/policy/hal-storage.policy
+++ b/policy/hal-storage.policy
@@ -23,6 +23,7 @@ file are instantly applied.
<policy id="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>
@@ -31,6 +32,7 @@ file are instantly applied.
<policy id="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>
@@ -39,6 +41,7 @@ file are instantly applied.
<policy id="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>
@@ -47,6 +50,7 @@ file are instantly applied.
<policy id="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>
@@ -55,6 +59,7 @@ file are instantly applied.
<policy id="hal-storage-crypto-setup">
<description>Set up decryption for encrypted storage devices.</description>
+ <message>System policy prevents accessing encrypted storage devices</message>
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>yes</allow_active>
More information about the hal-commit
mailing list