Skip to content

Commit

Permalink
Call ulimit to reduce DoS
Browse files Browse the repository at this point in the history
git-svn: trunk@3178
  • Loading branch information
Nigel Horne committed Aug 19, 2007
1 parent 55b2543 commit 8025384
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions contrib/init/NetBSD2.0/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"
command="/usr/local/sbin/${name}"

Expand Down

0 comments on commit 8025384

Please sign in to comment.