Use right umask for socket creation
This commit is contained in:
parent
5d3b64aa05
commit
be3f8f91a9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=46886
@ -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)
|
||||
|
11
security/drweb-sendmail/files/patch-ac
Normal file
11
security/drweb-sendmail/files/patch-ac
Normal file
@ -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" );
|
Loading…
Reference in New Issue
Block a user