summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-10-15 16:32:06 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-10-15 16:32:06 +0000
commit0f7c5e2b691259593f4d91623cb8f2090c419931 (patch)
tree1183d864a11b3502f4f5288f04cec0b83305708e
parentPut it into security sandbox disallowing 'drweb' user to own any files (diff)
Fix permissions, sendmail dislike group-writeable dirs
Notes
Notes: svn path=/head/; revision=48810
-rw-r--r--security/drweb/Makefile2
-rw-r--r--security/drweb/scripts/post-install4
2 files changed, 3 insertions, 3 deletions
diff --git a/security/drweb/Makefile b/security/drweb/Makefile
index bd70e2427ec1..104fd55e2109 100644
--- a/security/drweb/Makefile
+++ b/security/drweb/Makefile
@@ -20,7 +20,7 @@ NO_BUILD= YES
# Needed for update.pl
RUN_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/String/CRC32.pm:${PORTSDIR}/devel/p5-String-CRC32
-SCRIPTS_ENV+= BINOWN=${BINOWN}
+SCRIPTS_ENV+= BINOWN=${BINOWN} BINGRP=${BINGRP}
DRWEB_PREFIX= ${PREFIX}/${PORTNAME}
diff --git a/security/drweb/scripts/post-install b/security/drweb/scripts/post-install
index 359ca82a221b..796b644ce5f3 100644
--- a/security/drweb/scripts/post-install
+++ b/security/drweb/scripts/post-install
@@ -28,6 +28,6 @@ if ! grep -q drweb /etc/crontab; then
echo ""
fi
[ "$ex" = "1" ] && exit 1
-install -dv -m 0775 -o ${BINOWN} -g drweb ${PREFIX}/drweb/run
-install -dv -m 0770 -o ${BINOWN} -g drweb ${PREFIX}/drweb/infected.!!!
+install -dv -m 0755 -o drweb -g ${BINGRP} ${PREFIX}/drweb/run
+install -dv -m 0700 -o drweb -g ${BINGRP} ${PREFIX}/drweb/infected.!!!
exit 0