diff --git a/packaging/cfengine-nova-hub/cfengine-nova-hub.spec.in b/packaging/cfengine-nova-hub/cfengine-nova-hub.spec.in index a0dc77545..10a5f8f85 100644 --- a/packaging/cfengine-nova-hub/cfengine-nova-hub.spec.in +++ b/packaging/cfengine-nova-hub/cfengine-nova-hub.spec.in @@ -376,12 +376,12 @@ exit 0 # ENT-2708, ENT-2846 %defattr(600,root,root,700) -%prefix/share/GUI/application/config/*.php -%prefix/share/GUI/phpcfenginenova/*.sql -%prefix/share/GUI/phpcfenginenova/migrations -%prefix/share/GUI/phpcfenginenova/migrations/*.sql %prefix/share/db/*.sql +# No-one should need access to anything under share/GUI +%defattr(400,root,root,400) +%prefix/share/GUI + # Base policy %defattr(644,root,root,755) %prefix/share/NovaBase diff --git a/packaging/cfengine-nova-hub/debian/rules b/packaging/cfengine-nova-hub/debian/rules index eca24945e..c21541376 100755 --- a/packaging/cfengine-nova-hub/debian/rules +++ b/packaging/cfengine-nova-hub/debian/rules @@ -95,6 +95,13 @@ install: build # cf-enterprise-support cp $(BASEDIR)/nova/misc/cf-support-nova-hub.sh $(CURDIR)/debian/tmp$(PREFIX)/share/ +execute_after_dh_fixperms: +# No-one should need access to anything under share/GUI + chmod 400 -R $(CURDIR)/debian/tmp$(PREFIX)/share/ + chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/ppkeys/ + chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/outputs/ + chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/inputs/ + chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/state/ binary-indep: build install