diff options
-rw-r--r-- | system/clamav/clamav.SlackBuild | 4 | ||||
-rw-r--r-- | system/clamav/rc.clamav | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild index 1bd047b7af7d..29c087ceb72c 100644 --- a/system/clamav/clamav.SlackBuild +++ b/system/clamav/clamav.SlackBuild @@ -150,7 +150,9 @@ done install -D -m 0755 $CWD/rc.clamav $PKG/etc/rc.d/rc.clamav.new install -D -m 0644 $CWD/logrotate.clamav $PKG/etc/logrotate.d/clamav -# Create pid, socket, db and log directories +# Create pid, socket, db, and log directories +# init script must still ensure that /var/run/clamav exists +# and has proper ownership and permissions though mkdir -p $PKG/var/{lib,log,run}/clamav chmod 771 $PKG/var/{lib,log,run}/clamav diff --git a/system/clamav/rc.clamav b/system/clamav/rc.clamav index 43940738a407..67ffbcb31999 100644 --- a/system/clamav/rc.clamav +++ b/system/clamav/rc.clamav @@ -13,6 +13,9 @@ MILTER=0 clamav_start() { if [ -x /usr/sbin/clamd ]; then echo -n "Starting clamd daemon: /usr/sbin/clamd " + mkdir -p /var/run/clamav/ + chown clamav:clamav /var/run/clamav/ + chmod 771 /var/run/clamav/ /usr/sbin/clamd echo "." # Give clamd a chance to create the socket |