From 49b7e82c34e8e47692b70467871d2191556d0efe Mon Sep 17 00:00:00 2001 From: cassio Date: Wed, 29 Aug 2018 11:31:50 +0200 Subject: fixing file permissions --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7a84de9..9e84bb1 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,8 @@ install-bocaautojudge: tools/safeexec chmod 4555 $(DESTDIR)/usr/bin/safeexec install tools/boca-createjail $(DESTDIR)/usr/sbin/boca-createjail install tools/boca-autojudge.sh $(DESTDIR)/usr/sbin/boca-autojudge + chmod 700 $(DESTDIR)/usr/sbin/boca-createjail + chmod 700 $(DESTDIR)/usr/sbin/boca-autojudge install: install-bocawww install-bocaapache install-bocadb install-bocacommon install-bocaautojudge install-scripts @@ -52,11 +54,16 @@ install-submission-tools: tools/boca-submit-run-root-wrapper install tools/boca-submit-run-cron $(DESTDIR)/usr/bin/ install tools/boca-submit-run-aux $(DESTDIR)/usr/bin/ install tools/boca-submit-run-root $(DESTDIR)/usr/bin/ - install tools/boca-submit-log $(DESTDIR)/usr/sbin/boca-submit-log + install tools/boca-submit-log $(DESTDIR)/usr/sbin/ install tools/cron-boca-submit $(DESTDIR)/etc/cron.d/ install tools/cron-boca-fixssh $(DESTDIR)/etc/cron.d/ install tools/cron-boca-log $(DESTDIR)/etc/cron.d/ install tools/boca-submit-run-root-wrapper $(DESTDIR)/usr/bin/ install tools/boca-outmanage $(DESTDIR)/usr/sbin/ install tools/boca-checkinternet $(DESTDIR)/usr/sbin/ + chmod 700 $(DESTDIR)/usr/sbin/boca-auth-runs + chmod 700 $(DESTDIR)/usr/sbin/boca-fixssh + chmod 700 $(DESTDIR)/usr/sbin/boca-outmanage + chmod 700 $(DESTDIR)/usr/sbin/boca-submit-log + chmod 700 $(DESTDIR)/usr/bin/boca-submit-run-* chmod 4555 $(DESTDIR)/usr/bin/boca-submit-run-root-wrapper -- cgit v1.2.3 From 46ef517c23a4a9319bc64cdde3f2fd56ecbb9c45 Mon Sep 17 00:00:00 2001 From: cassio Date: Wed, 29 Aug 2018 13:33:16 +0200 Subject: some fixes to boca-fixssh and new updates --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9e84bb1..99932df 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,9 @@ install-bocawww: mkdir -p $(DESTDIR)/var/www/boca/ cp -r src $(DESTDIR)/var/www/boca/ cp -r doc $(DESTDIR)/var/www/boca/ + install tools/boca-fixssh $(DESTDIR)/usr/sbin/ + install tools/cron-boca-fixssh $(DESTDIR)/etc/cron.d/ + chmod 700 $(DESTDIR)/usr/sbin/boca-fixssh install-bocaapache: mkdir -p $(DESTDIR)/etc/apache2/sites-enabled/ @@ -49,20 +52,20 @@ install: install-bocawww install-bocaapache install-bocadb install-bocacommon in install-submission-tools: tools/boca-submit-run-root-wrapper mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin $(DESTDIR)/etc/cron.d install tools/boca-auth-runs $(DESTDIR)/usr/sbin/ - install tools/boca-fixssh $(DESTDIR)/usr/sbin/ install tools/boca-submit-run $(DESTDIR)/usr/bin/ install tools/boca-submit-run-cron $(DESTDIR)/usr/bin/ install tools/boca-submit-run-aux $(DESTDIR)/usr/bin/ install tools/boca-submit-run-root $(DESTDIR)/usr/bin/ install tools/boca-submit-log $(DESTDIR)/usr/sbin/ install tools/cron-boca-submit $(DESTDIR)/etc/cron.d/ - install tools/cron-boca-fixssh $(DESTDIR)/etc/cron.d/ install tools/cron-boca-log $(DESTDIR)/etc/cron.d/ install tools/boca-submit-run-root-wrapper $(DESTDIR)/usr/bin/ install tools/boca-outmanage $(DESTDIR)/usr/sbin/ install tools/boca-checkinternet $(DESTDIR)/usr/sbin/ + install tools/boca-fixes $(DESTDIR)/usr/sbin/ + install tools/cron-boca-fixes $(DESTDIR)/etc/cron.d/ + chmod 700 $(DESTDIR)/usr/sbin/boca-fixes chmod 700 $(DESTDIR)/usr/sbin/boca-auth-runs - chmod 700 $(DESTDIR)/usr/sbin/boca-fixssh chmod 700 $(DESTDIR)/usr/sbin/boca-outmanage chmod 700 $(DESTDIR)/usr/sbin/boca-submit-log chmod 700 $(DESTDIR)/usr/bin/boca-submit-run-* -- cgit v1.2.3 From b3d6ce4d2c1650d2e99787f372c51d88d07d65d6 Mon Sep 17 00:00:00 2001 From: cassio Date: Wed, 29 Aug 2018 13:44:16 +0200 Subject: fix install --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 99932df..78fafdc 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ tools/boca-submit-run-root-wrapper: tools/boca-submit-run-root-wrapper.c gcc $^ -o $@ install-bocawww: - mkdir -p $(DESTDIR)/var/www/boca/ + mkdir -p $(DESTDIR)/usr/sbin $(DESTDIR)/etc/cron.d $(DESTDIR)/var/www/boca/ cp -r src $(DESTDIR)/var/www/boca/ cp -r doc $(DESTDIR)/var/www/boca/ install tools/boca-fixssh $(DESTDIR)/usr/sbin/ -- cgit v1.2.3 From 893c493314e12631d90c724ce2c985174cc24f17 Mon Sep 17 00:00:00 2001 From: cassio Date: Wed, 29 Aug 2018 15:03:37 +0200 Subject: forcing chmod no postinstall --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 78fafdc..af01438 100644 --- a/Makefile +++ b/Makefile @@ -23,18 +23,21 @@ install-bocaapache: install-scripts: mkdir -p $(DESTDIR)/usr/sbin/ install tools/dump.sh $(DESTDIR)/usr/sbin/boca-dump + chmod 700 $(DESTDIR)/usr/sbin/boca-dump install-bocadb: mkdir -p $(DESTDIR)/usr/sbin/ mkdir -p $(DESTDIR)/etc cp -r tools/postgresql $(DESTDIR)/etc install tools/boca-createdb.sh $(DESTDIR)/usr/sbin/boca-createdb + chmod 700 $(DESTDIR)/usr/sbin/boca-createdb install-bocacommon: install-bocawww mkdir -p $(DESTDIR)/usr/sbin/ mkdir -p $(DESTDIR)/etc/ cp tools/boca.conf $(DESTDIR)/etc/ install tools/boca-config-dbhost.sh $(DESTDIR)/usr/sbin/boca-config-dbhost + chmod 700 $(DESTDIR)/usr/sbin/boca-config-dbhost install-bocaautojudge: tools/safeexec mkdir -p $(DESTDIR)/usr/sbin/ -- cgit v1.2.3 From b117763dfafeec631c47a8fca6880400c5c6d854 Mon Sep 17 00:00:00 2001 From: cassio Date: Wed, 29 Aug 2018 15:17:19 +0200 Subject: chmods in the postinst --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index af01438..6ec0a69 100644 --- a/Makefile +++ b/Makefile @@ -44,9 +44,9 @@ install-bocaautojudge: tools/safeexec mkdir -p $(DESTDIR)/usr/bin/ mkdir -p $(DESTDIR)/etc/ install tools/safeexec $(DESTDIR)/usr/bin/safeexec - chmod 4555 $(DESTDIR)/usr/bin/safeexec install tools/boca-createjail $(DESTDIR)/usr/sbin/boca-createjail install tools/boca-autojudge.sh $(DESTDIR)/usr/sbin/boca-autojudge + chmod 4555 $(DESTDIR)/usr/bin/safeexec chmod 700 $(DESTDIR)/usr/sbin/boca-createjail chmod 700 $(DESTDIR)/usr/sbin/boca-autojudge -- cgit v1.2.3