1832cf4035
* 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
35 lines
625 B
Bash
35 lines
625 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
# PROVIDE: freshclam
|
|
# REQUIRE: LOGIN clamd
|
|
# BEFORE: mail
|
|
# KEYWORD: shutdown
|
|
|
|
#
|
|
# Add the following lines to /etc/rc.conf to enable the freshclam daemon:
|
|
#
|
|
#clamav_freshclam_enable="YES"
|
|
#
|
|
# See freshclam(1) for flags
|
|
#
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name=clamav_freshclam
|
|
rcvar=`set_rcvar`
|
|
|
|
command=%%PREFIX%%/bin/freshclam
|
|
pidfile=%%RUNDIR%%/freshclam.pid
|
|
command_args="--daemon -p ${pidfile}"
|
|
required_dirs=%%DBDIR%%
|
|
required_files=%%PREFIX%%/etc/freshclam.conf
|
|
|
|
# read settings, set default values
|
|
load_rc_config "$name"
|
|
: ${clamav_freshclam_enable="NO"}
|
|
: ${clamav_freshclam_flags=""}
|
|
|
|
run_rc_command "$1"
|