Add Neutron 2015.1 for Ubuntu 14.04
[openstack-build/neutron-build.git] / trusty / debian / neutron-common.postinst
similarity index 60%
rename from debian/neutron-common.postinst
rename to trusty/debian/neutron-common.postinst
index b92b417f22067352427a4525bf9db94f3609604a..6de03ad3b918b5efc0dd190c998ea624426447b1 100644 (file)
@@ -18,7 +18,14 @@ then
        chmod 0750 /var/log/neutron/
 
     chown -R root:neutron /etc/neutron/
-    chmod 0750 /etc/neutron/
+    # NOTE(jamespage): In order to execute unit test in decomposed
+    #                  vendor drivers, /etc/neutron must be readable
+    #                  other than by root or neutron; limitation of
+    #                  access to neutron.conf is sufficient as this
+    #                  file contains access details for DB, keystone
+    #                  and message bus.
+    chmod 0755 /etc/neutron/
+    chmod -f 0640 /etc/neutron/neutron.conf || :
        chown root:root /etc/neutron/rootwrap.conf
        chown -R root:root /etc/neutron/rootwrap.d
        chmod 0755 /etc/neutron/rootwrap.d