summaryrefslogtreecommitdiff
path: root/fdi
diff options
context:
space:
mode:
authorLinus Walleij <linus.ml.walleij@gmail.com>2008-03-03 18:24:04 -0500
committerDavid Zeuthen <davidz@redhat.com>2008-03-03 18:24:04 -0500
commitcebc92a9b2bc62442fbde76064540df5c03ff060 (patch)
treec09267bfe65f0239bc6e3053d3e92ad448085a88 /fdi
parent9fc161488795bcd259ea499bb28c04383be3a51b (diff)
add acls to USB based audio players
We have a few audio players accessing USB in raw mode using libusb. Fedora is starting to rely on ACLs for this, so HAL has to do the grunt work. (We used to use pam_console, no good.) (patch slightly tweaked by davidz)
Diffstat (limited to 'fdi')
-rw-r--r--fdi/policy/10osvendor/20-acl-management.fdi5
1 files changed, 5 insertions, 0 deletions
diff --git a/fdi/policy/10osvendor/20-acl-management.fdi b/fdi/policy/10osvendor/20-acl-management.fdi
index 14973392..50294e37 100644
--- a/fdi/policy/10osvendor/20-acl-management.fdi
+++ b/fdi/policy/10osvendor/20-acl-management.fdi
@@ -71,6 +71,11 @@
<merge key="access_control.type" type="string">scanner</merge>
<merge key="access_control.file" type="copy_property">@info.parent:linux.device_file</merge>
</match>
+ <match key="info.capabilities" contains="portable_audio_player">
+ <append key="info.capabilities" type="strlist">access_control</append>
+ <merge key="access_control.type" type="string">audio-player</merge>
+ <merge key="access_control.file" type="copy_property">@info.parent:linux.device_file</merge>
+ </match>
</match>
</match>