shill: Add dbus configuration file from shill.

The file is not installed yet -- this will be followed by an ebuild
patch. Remove "cashew" user. The new file is named after the dbus
interface and we temporarily install duplicate configs (from flimflam
and shill) but that seems to work OK.

BUG=chromium-os:35717
TEST=gmerged shill, rebooted, tested connectivity, inspected logs for
crashes or dbus issues

Change-Id: Id3b4e9882fe6d62eb963b408a1e0b7cd9865e72d
Reviewed-on: https://gerrit.chromium.org/gerrit/36772
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Ready: Darin Petkov <petkov@chromium.org>
diff --git a/shims/org.chromium.flimflam.conf b/shims/org.chromium.flimflam.conf
new file mode 100644
index 0000000..7f965dd
--- /dev/null
+++ b/shims/org.chromium.flimflam.conf
@@ -0,0 +1,48 @@
+<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
+ "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
+<busconfig>
+    <policy user="root">
+        <allow own="org.chromium.flimflam"/>
+        <allow send_destination="org.chromium.flimflam"/>
+        <allow send_interface="org.chromium.flimflam.Agent"/>
+    </policy>
+    <policy user="system">
+        <allow send_destination="org.chromium.flimflam"/>
+    </policy>
+    <policy user="cromo">
+        <allow send_destination="org.chromium.flimflam"/>
+    </policy>
+    <policy user="chronos">
+        <allow send_destination="org.chromium.flimflam"/>
+    </policy>
+    <policy user="debugd">
+      <allow send_destination="org.chromium.flimflam"
+             send_interface="org.chromium.flimflam.Manager"
+             send_member="SetDebugTags"/>
+      <allow send_destination="org.chromium.flimflam"
+             send_interface="org.chromium.flimflam.Device"
+             send_member="GetProperties"/>
+      <allow send_destination="org.chromium.flimflam"
+             send_interface="org.chromium.flimflam.IPConfig"
+             send_member="GetProperties"/>
+      <allow send_destination="org.chromium.flimflam"
+             send_interface="org.chromium.flimflam.Manager"
+             send_member="GetProperties"/>
+      <allow send_destination="org.chromium.flimflam"
+             send_interface="org.chromium.flimflam.Service"
+             send_member="GetProperties"/>
+    </policy>
+    <policy user="openvpn">
+        <allow send_destination="org.chromium.flimflam"/>
+        <allow send_interface="org.chromium.flimflam.Task"/>
+    </policy>
+    <policy user="wpa">
+        <allow send_destination="org.chromium.flimflam"/>
+    </policy>
+    <policy user="dhcp">
+        <allow send_destination="org.chromium.flimflam"/>
+    </policy>
+    <policy context="default">
+        <deny send_destination="org.chromium.flimflam"/>
+    </policy>
+</busconfig>