summaryrefslogtreecommitdiff
path: root/fdi
diff options
context:
space:
mode:
authorLudwig Nussel <ludwig.nussel@suse.de>2009-01-19 14:04:13 +0100
committerDanny Kukawka <danny.kukawka@web.de>2009-01-19 14:04:13 +0100
commit0e94b8c9696cff21480b8f037356d7e9942cc477 (patch)
tree3932a0a13ed48fc2f16ba843845e48f26ec4f4f5 /fdi
parent674bb9b20b95b30aaf3d8b6824b0ee2e552c9f5f (diff)
fix ACL handling for removable block devices (as CD/DVD)
Fixed ACL handling for removable block devices (as CD/DVD). Do not set acl properties on unpartitioned volumes (bnc#408252), this change the settings for CD/DVD burn devices and prevent the user from burning CD/DVD's.
Diffstat (limited to 'fdi')
-rw-r--r--fdi/policy/10osvendor/20-acl-management.fdi16
1 files changed, 13 insertions, 3 deletions
diff --git a/fdi/policy/10osvendor/20-acl-management.fdi b/fdi/policy/10osvendor/20-acl-management.fdi
index 124d889f..ee637681 100644
--- a/fdi/policy/10osvendor/20-acl-management.fdi
+++ b/fdi/policy/10osvendor/20-acl-management.fdi
@@ -31,9 +31,19 @@
<!-- 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>
+ <!-- do not set acls on unpartitioned volumes, parent gets them -->
+ <match key="block.is_volume" bool="true">
+ <match key="volume.is_partition" 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>
+ <match key="block.is_volume" bool="false">
+ <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>
</match>