Skip to content

Commit 2a3f94c

Browse files
authored
Merge pull request #1838 from nickanderson/ENT-13161/master
ENT-13161: Aligned Hub package perms for share/GUI on EL and Debian platforms with the MPF
2 parents 30e4f8f + 1456c53 commit 2a3f94c

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

packaging/cfengine-nova-hub/cfengine-nova-hub.spec.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,12 @@ exit 0
381381

382382
# ENT-2708, ENT-2846
383383
%defattr(600,root,root,700)
384-
%prefix/share/GUI/application/config/*.php
385-
%prefix/share/GUI/phpcfenginenova/*.sql
386-
%prefix/share/GUI/phpcfenginenova/migrations
387-
%prefix/share/GUI/phpcfenginenova/migrations/*.sql
388384
%prefix/share/db/*.sql
389385

386+
# No-one should need access to anything under share/GUI
387+
%defattr(400,root,root,400)
388+
%prefix/share/GUI
389+
390390
# Base policy
391391
%defattr(644,root,root,755)
392392
%prefix/share/NovaBase

packaging/cfengine-nova-hub/debian/rules

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ install: build
9595
# cf-enterprise-support
9696
cp $(BASEDIR)/nova/misc/cf-support-nova-hub.sh $(CURDIR)/debian/tmp$(PREFIX)/share/
9797

98+
execute_after_dh_fixperms:
99+
# No-one should need access to anything under share/GUI
100+
chmod 400 -R $(CURDIR)/debian/tmp$(PREFIX)/share/
101+
chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/ppkeys/
102+
chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/outputs/
103+
chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/inputs/
104+
chmod 700 $(CURDIR)/debian/tmp$(PREFIX)/state/
98105

99106
binary-indep: build install
100107

0 commit comments

Comments
 (0)