diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2008-11-27 13:42:24 +0100 |
---|---|---|
committer | Danny Kukawka <danny.kukawka@web.de> | 2008-11-27 13:42:24 +0100 |
commit | e72cb4437700b4b34ac5c6de0e30dff8bb0ed89e (patch) | |
tree | 3408b795ff0b8840b53725c35bab419627e09733 /policy | |
parent | c3cf2b8b252dd593c4058b9688b5978e3e7ee7cc (diff) |
add ACL support to removable block devices
This adds support for adding ACLs to removable block devices (such as
USB keys) on insertion. This is useful for allowing users to run mkfs
or fsck on their USB keys.
Please note that the patch does *not* enable it by default, that's up
to distros or individual users (gnome-polkit-authorization), but it
provides a standard flip to configure this behaviour.
Diffstat (limited to 'policy')
-rw-r--r-- | policy/org.freedesktop.hal.device-access.policy | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/policy/org.freedesktop.hal.device-access.policy b/policy/org.freedesktop.hal.device-access.policy index 3c07e72c..53711744 100644 --- a/policy/org.freedesktop.hal.device-access.policy +++ b/policy/org.freedesktop.hal.device-access.policy @@ -55,6 +55,15 @@ NOTE: Please keep the actions in alpabetical order </defaults> </action> + <action id="org.freedesktop.hal.device-access.removable-block"> + <description>Directly access removable block devices</description> + <message>System policy prevents access to removable block devices</message> + <defaults> + <allow_inactive>no</allow_inactive> + <allow_active>no</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> |