Skip to content

Commit

Permalink
Call ulimit to reduce DoS
Browse files Browse the repository at this point in the history
git-svn: trunk@3179
  • Loading branch information
Nigel Horne committed Aug 19, 2007
1 parent 8025384 commit 96f743e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/init/FreeBSD5.2/clamav
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@

. /etc/rc.subr

# Don't allow files larger than 20M to be created, to limit DoS
# Needs to be large enough to extract the signature files
ulimit -f 20000

name="clamd"
rcvar="`set_rcvar`"
command="/usr/local/sbin/${name}"
Expand Down

0 comments on commit 96f743e

Please sign in to comment.