freebsd-ports/security/clamav-devel/files/clamav-clamd.in
Renato Botelho 1832cf4035 - Update to 20060406 snapshot -- fix multiple vulnerabilities
* CVE-2006-1614
      Damian Put discovered an integer overflow in the PE header parser.
      This is only exploitable if the ArchiveMaxFileSize option is disabled.
   * CVE-2006-1615
      Format string vulnerabilities in the logging code have been discovered,
      which might lead to the execution of arbitrary code.
   * CVE-2006-1630
      David Luyer discovered, that ClamAV can be tricked into an invalid
      memory access in the cli_bitset_set() function, which may lead to
      a denial of service.

- Synchronize with clamav port using SUB_FILES, USE_RC_SUBR

PR:		ports/95425
Submitted by:	garga
Security:	VuXML 6a5174bd-c580-11da-9110-00123ffe8333
2006-04-07 10:10:20 +00:00

35 lines
582 B
Bash

#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: clamd
# REQUIRE: LOGIN
# BEFORE: mail
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable clamd:
#
#clamav_clamd_enable="YES"
#
# See clamd(8) for flags
#
. %%RC_SUBR%%
name=clamav_clamd
rcvar=`set_rcvar`
command=%%PREFIX%%/sbin/clamd
pidfile=%%RUNDIR%%/clamd.pid
required_dirs=%%DBDIR%%
required_files=%%PREFIX%%/etc/clamd.conf
# read settings, set default values
load_rc_config "$name"
: ${clamav_clamd_enable="NO"}
: ${clamav_clamd_flags=""}
: ${clamav_clamd_socket="%%CLAMAV_CLAMD_SOCKET%%"}
run_rc_command "$1"