From 9aa4c3acde9e4d37fb5d2f9c39a76fec568111c2 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Mon, 27 Aug 2007 12:01:34 -0400 Subject: update to work with PolicyKit HEAD --- policy/hal-device-file.policy | 150 +++++++++++++++---------------- policy/hal-killswitch.policy | 42 ++++----- policy/hal-lock.policy | 24 ++--- policy/hal-power.policy | 204 ++++++++++++++++++++---------------------- policy/hal-storage.policy | 96 ++++++++++---------- 5 files changed, 243 insertions(+), 273 deletions(-) (limited to 'policy') diff --git a/policy/hal-device-file.policy b/policy/hal-device-file.policy index e3289b40..d1318b63 100644 --- a/policy/hal-device-file.policy +++ b/policy/hal-device-file.policy @@ -1,3 +1,4 @@ + @@ -11,87 +12,80 @@ 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. - -NOTE: If you make changes to this file, make sure to validate the file -using the polkit-policy-file-validate(1) tool. Changes made to this -file are instantly applied. --> - - Raw device access - - - Directly access sound devices - System policy prevents access to the sound devices - - no - yes - - - - - Directly access video capture devices - System policy prevents access to video capture devices - - no - yes - - - - - Directly access optical drives - System policy prevents access to optical drives - - yes - yes - - - - - Directly access DVB devices - System policy prevents access to DVB devices - - no - yes - - - - - Directly access digital cameras - System policy prevents access to digital cameras - - no - yes - - - - - Directly access scanners - System policy prevents access to scanners - - no - yes - - - - - Directly access Firewire IIDC devices - System policy prevents access to Firewire IIDC devices - - no - yes - - - - Directly access Firewire AVC devices - System policy prevents access to Firewire AVC devices - - no - yes - - + + Directly access sound devices + System policy prevents access to the sound devices + + no + yes + + + + + Directly access video capture devices + System policy prevents access to video capture devices + + no + yes + + + + + Directly access optical drives + System policy prevents access to optical drives + + yes + yes + + + + + Directly access DVB devices + System policy prevents access to DVB devices + + no + yes + + + + + Directly access digital cameras + System policy prevents access to digital cameras + + no + yes + + + + + Directly access scanners + System policy prevents access to scanners + + no + yes + + + + + Directly access Firewire IIDC devices + System policy prevents access to Firewire IIDC devices + + no + yes + + + + + Directly access Firewire AVC devices + System policy prevents access to Firewire AVC devices + + no + yes + + - diff --git a/policy/hal-killswitch.policy b/policy/hal-killswitch.policy index c658cdc3..dce0339d 100644 --- a/policy/hal-killswitch.policy +++ b/policy/hal-killswitch.policy @@ -1,3 +1,4 @@ + @@ -11,33 +12,26 @@ 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. - -NOTE: If you make changes to this file, make sure to validate the file -using the polkit-policy-file-validate(1) tool. Changes made to this -file are instantly applied. --> - - Radio Killswitches - - - Turn Bluetooth radio On/Off - System policy prevents turning the Bluetooth radio On/Off - - no - yes - - - - Turn WLAN radio On/Off - System policy prevents turning the WLAN radio On/Off - - no - yes - - + + Turn Bluetooth radio On/Off + System policy prevents turning the Bluetooth radio On/Off + + no + yes + + + + + Turn WLAN radio On/Off + System policy prevents turning the WLAN radio On/Off + + no + yes + + - diff --git a/policy/hal-lock.policy b/policy/hal-lock.policy index 161d30d4..6789a4a4 100644 --- a/policy/hal-lock.policy +++ b/policy/hal-lock.policy @@ -1,3 +1,4 @@ + @@ -11,24 +12,17 @@ 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. - -NOTE: If you make changes to this file, make sure to validate the file -using the polkit-policy-file-validate(1) tool. Changes made to this -file are instantly applied. --> - - Locking of devices - - Acquire locks on devices - System policy prevents locking devices - - no - yes - - + + Acquire locks on devices + System policy prevents locking devices + + no + yes + + - diff --git a/policy/hal-power.policy b/policy/hal-power.policy index ffc1a7f9..f0ee7fdf 100644 --- a/policy/hal-power.policy +++ b/policy/hal-power.policy @@ -1,3 +1,4 @@ + @@ -11,114 +12,107 @@ 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. - -NOTE: If you make changes to this file, make sure to validate the file -using the polkit-policy-file-validate(1) tool. Changes made to this -file are instantly applied. --> - - Power Management - - - Shut down the system - System policy prevents shutting down the system - - no - yes - - - - - Shut down the system when multiple users are logged in - System policy prevents shutting down the system while multiple users are logged in - - no - auth_admin - - - - - Reboot the system - System policy prevents rebooting the system - - no - yes - - - - - Reboot the system when multiple users are logged in - System policy prevents rebooting the system while multiple users are logged in - - no - auth_admin - - - - - Configure to system to prefer power savings - System policy prevents enabling power savings - - no - yes - - - - - Suspend the system - System policy prevents suspending the system - - no - yes - - - - - Hibernate the system - System policy prevents hibernating the system - - no - yes - - - - - Configure CPU frequency scaling - System policy prevents CPU frequency scaling to be configured - - no - yes - - - - - Set laptop panel brightness - System policy prevents adjusting the laptop panel brightness - - no - yes - - - - - Detect ambient light using light sensor - System policy prevents accessing the ambient light sensor - - no - yes - - - - Set keyboard backlight - System policy prevents adjusting the keyboard backlight - - no - yes - - + + Shut down the system + System policy prevents shutting down the system + + no + yes + + + + + Shut down the system when multiple users are logged in + System policy prevents shutting down the system while multiple users are logged in + + no + auth_admin + + + + + Reboot the system + System policy prevents rebooting the system + + no + yes + + + + + Reboot the system when multiple users are logged in + System policy prevents rebooting the system while multiple users are logged in + + no + auth_admin + + + + + Configure to system to prefer power savings + System policy prevents enabling power savings + + no + yes + + + + + Suspend the system + System policy prevents suspending the system + + no + yes + + + + + Hibernate the system + System policy prevents hibernating the system + + no + yes + + + + + Configure CPU frequency scaling + System policy prevents CPU frequency scaling to be configured + + no + yes + + + + + Set laptop panel brightness + System policy prevents adjusting the laptop panel brightness + + no + yes + + + + + Detect ambient light using light sensor + System policy prevents accessing the ambient light sensor + + no + yes + + + + + Set keyboard backlight + System policy prevents adjusting the keyboard backlight + + no + yes + + - diff --git a/policy/hal-storage.policy b/policy/hal-storage.policy index 8f2e54c5..ff729c8d 100644 --- a/policy/hal-storage.policy +++ b/policy/hal-storage.policy @@ -1,3 +1,4 @@ + @@ -11,60 +12,53 @@ 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. - -NOTE: If you make changes to this file, make sure to validate the file -using the polkit-policy-file-validate(1) tool. Changes made to this -file are instantly applied. --> - - Storage Drives and Media - - - Mount file systems from internal drives. - System policy prevents mounting internal media - - no - auth_admin_keep_always - - - - - Mount file systems from removable drives. - System policy prevents mounting removable media - - no - yes - - - - - Unmount file systems mounted by other users. - System policy prevents unmounting media mounted by other users - - no - auth_admin_keep_always - - - - - Eject removable media. - System policy prevents ejecting removable media - - no - yes - - - - Set up decryption for encrypted storage devices. - System policy prevents accessing encrypted storage devices - - no - yes - - + + Mount file systems from internal drives. + System policy prevents mounting internal media + + no + auth_admin_keep_always + + + + + Mount file systems from removable drives. + System policy prevents mounting removable media + + no + yes + + + + + Unmount file systems mounted by other users. + System policy prevents unmounting media mounted by other users + + no + auth_admin_keep_always + + + + + Eject removable media. + System policy prevents ejecting removable media + + no + yes + + + + + Set up decryption for encrypted storage devices. + System policy prevents accessing encrypted storage devices + + no + yes + + - -- cgit v1.2.3