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 /fdi | |
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 'fdi')
-rw-r--r-- | fdi/policy/10osvendor/20-acl-management.fdi | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/fdi/policy/10osvendor/20-acl-management.fdi b/fdi/policy/10osvendor/20-acl-management.fdi index 4b0c6168..22f325ba 100644 --- a/fdi/policy/10osvendor/20-acl-management.fdi +++ b/fdi/policy/10osvendor/20-acl-management.fdi @@ -28,6 +28,15 @@ <merge key="access_control.type" type="string">video4linux</merge> </match> + <!-- Removable block devices --> + <match key="info.capabilities" contains="block"> + <match key="@block.storage_device:storage.removable" bool="true"> + <append key="info.capabilities" type="strlist">access_control</append> + <merge key="access_control.file" type="copy_property">block.device</merge> + <merge key="access_control.type" type="string">removable-block</merge> + </match> + </match> + <!-- optical drives --> <match key="info.capabilities" contains="storage.cdrom"> <append key="info.capabilities" type="strlist">access_control</append> |