aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-08-25 22:14:27 +0800
committerache <ache@FreeBSD.org>2001-08-25 22:14:27 +0800
commitade904dfa5530baf6dc049bfeb00beaffc1196ca (patch)
treeae2938699a047d1c31e17cbbef8527fe16abfed4 /security
parent907868e42324643e199e10dde37924646f829f5b (diff)
downloadfreebsd-ports-gnome-ade904dfa5530baf6dc049bfeb00beaffc1196ca.tar.gz
freebsd-ports-gnome-ade904dfa5530baf6dc049bfeb00beaffc1196ca.tar.zst
freebsd-ports-gnome-ade904dfa5530baf6dc049bfeb00beaffc1196ca.zip
Use right umask for socket creation
Diffstat (limited to 'security')
-rw-r--r--security/drweb-sendmail/files/drweb-smf.sh1
-rw-r--r--security/drweb-sendmail/files/patch-ac11
2 files changed, 11 insertions, 1 deletions
diff --git a/security/drweb-sendmail/files/drweb-smf.sh b/security/drweb-sendmail/files/drweb-smf.sh
index 602583818484..a47e6045a7ce 100644
--- a/security/drweb-sendmail/files/drweb-smf.sh
+++ b/security/drweb-sendmail/files/drweb-smf.sh
@@ -11,7 +11,6 @@ start)
$drwebfilter -u/var/run/drwebd -m/var/run/drweb-smf.sock \
-a!!PREFIX!!/drweb/infected.!!! -f/tmp -r -x -h -l -ba \
-gpostmaster -epostmaster@your.domain.name
- /bin/chmod 660 /var/run/drweb-smf.sock
fi
;;
stop)
diff --git a/security/drweb-sendmail/files/patch-ac b/security/drweb-sendmail/files/patch-ac
new file mode 100644
index 000000000000..d14206fe9992
--- /dev/null
+++ b/security/drweb-sendmail/files/patch-ac
@@ -0,0 +1,11 @@
+--- dwf_main.c.bak Mon Jul 30 05:14:43 2001
++++ dwf_main.c Sat Aug 25 18:08:18 2001
+@@ -251,7 +251,7 @@
+ wprintLib( "can not change directory to root" );
+ return -1;
+ }
+- umask( 0 );
++ umask( 0117 );
+ if( getrlimit( RLIMIT_NOFILE, &filelimit ) < 0 )
+ {
+ wprintLib( "can not get system limits" );