[meta-virtualization] [m-c-s][PATCH 1/2] python-django-compressor: set useful perms

Mark Asselstine mark.asselstine at windriver.com
Wed Nov 22 08:09:29 PST 2017


Horizon will fail when you attempt to open the login page. The error
message will indicate that 'compressor' is not found but the issue is
in fact that apache2 can't access these files/directories as they are
restricted to 'root' only. Looking at other Linux deployments this
change matches the permissions you would find elsewhere and now allows
for proper operation.

Signed-off-by: Mark Asselstine <mark.asselstine at windriver.com>
---
 .../recipes-devtools/python/python-django-compressor_2.1.bb        | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta-openstack/recipes-devtools/python/python-django-compressor_2.1.bb b/meta-openstack/recipes-devtools/python/python-django-compressor_2.1.bb
index c546c85..9d528d9 100644
--- a/meta-openstack/recipes-devtools/python/python-django-compressor_2.1.bb
+++ b/meta-openstack/recipes-devtools/python/python-django-compressor_2.1.bb
@@ -17,4 +17,11 @@ RDEPENDS_${PN} += " \
         python-rjsmin  \
         "
 
+do_install_append() {
+    # Ensure permisive perms are granted
+    find -L "${D}${PYTHON_SITEPACKAGES_DIR}/compressor" -type f -exec chmod 644 {} \;
+    find -L "${D}${PYTHON_SITEPACKAGES_DIR}/compressor" -type d -exec chmod 755 {} \;
+}
+
+
 CLEANBROKEN = "1"
-- 
2.7.4



More information about the meta-virtualization mailing list