Skip to content

Commit 9c3d9b3

Browse files
committed
Make sure the webserver can reach the installation directory
1 parent 2510960 commit 9c3d9b3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,18 @@ inplace-install-l:
250250
@echo " - Give the webserver access to things it needs"
251251
@echo " setfacl -m u:$(WEBSERVER_GROUP):r $(CURDIR)/etc/dbpasswords.secret"
252252
@echo " setfacl -m u:$(WEBSERVER_GROUP):r $(CURDIR)/etc/symfony_app.secret"
253+
@echo " setfacl -m u:$(WEBSERVER_GROUP):r $(CURDIR)/etc/domserver-static.php"
254+
@echo " setfacl -m u:$(WEBSERVER_GROUP):r $(CURDIR)/etc/verdicts.php"
255+
@echo " setfacl -R -m d:u:$(WEBSERVER_GROUP):rx $(CURDIR)/webapp"
256+
@echo " setfacl -R -m u:$(WEBSERVER_GROUP):rx $(CURDIR)/webapp"
253257
@echo " setfacl -R -m d:u:$(WEBSERVER_GROUP):rwx $(CURDIR)/webapp/var"
254258
@echo " setfacl -R -m u:$(WEBSERVER_GROUP):rwx $(CURDIR)/webapp/var"
255259
@echo " setfacl -R -m d:m::rwx $(CURDIR)/webapp/var"
256260
@echo " setfacl -R -m m::rwx $(CURDIR)/webapp/var"
257261
@echo " # Also make sure you keep access"
258262
@echo " setfacl -R -m d:u:$(DOMJUDGE_USER):rwx $(CURDIR)/webapp/var"
259263
@echo " setfacl -R -m u:$(DOMJUDGE_USER):rwx $(CURDIR)/webapp/var"
264+
@echo " And manually make sure the webserver has traversal access to: $(CURDIR)"
260265
@echo " - Configure webserver"
261266
@echo " Apache 2:"
262267
@echo " ln -sf $(CURDIR)/etc/apache.conf /etc/apache2/conf-available/domjudge.conf"
@@ -274,6 +279,10 @@ inplace-install-l:
274279
inplace-postinstall-permissions:
275280
setfacl -m u:$(WEBSERVER_GROUP):r $(CURDIR)/etc/dbpasswords.secret
276281
setfacl -m u:$(WEBSERVER_GROUP):r $(CURDIR)/etc/symfony_app.secret
282+
setfacl -m u:$(WEBSERVER_GROUP):r $(CURDIR)/etc/domserver-static.php
283+
setfacl -m u:$(WEBSERVER_GROUP):r $(CURDIR)/etc/verdicts.php
284+
setfacl -R -m d:u:$(WEBSERVER_GROUP):rx $(CURDIR)/webapp
285+
setfacl -R -m u:$(WEBSERVER_GROUP):rx $(CURDIR)/webapp
277286
setfacl -R -m d:u:$(WEBSERVER_GROUP):rwx $(CURDIR)/webapp/var
278287
setfacl -R -m u:$(WEBSERVER_GROUP):rwx $(CURDIR)/webapp/var
279288
setfacl -R -m d:u:$(DOMJUDGE_USER):rwx $(CURDIR)/webapp/var

0 commit comments

Comments
 (0)