summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRudolf Müller <rudolf.mueller@rz.uni-mannheim.de>2021-04-13 20:23:30 +0200
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-04-17 11:47:50 +0700
commit4c81f3896d47bd5b74fa6d408b3e83183fc11859 (patch)
tree2985422efd1f29b6fdc3d6faf435425dc4a2a07e
parentdab4f76b97714c585a4b06b14d39040480c2a105 (diff)
downloadslackbuilds-4c81f3896d47bd5b74fa6d408b3e83183fc11859.tar.gz
system/clamav: Fix permissions to allow users to run clamscan.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/clamav/clamav.SlackBuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/clamav/clamav.SlackBuild b/system/clamav/clamav.SlackBuild
index 4e5251fe0e..79be84db92 100644
--- a/system/clamav/clamav.SlackBuild
+++ b/system/clamav/clamav.SlackBuild
@@ -180,7 +180,8 @@ install -D -m 0644 $CWD/logrotate.clamav $PKG/etc/logrotate.d/clamav.new
# init script must still ensure that /var/run/clamav exists
# and has proper ownership and permissions though
mkdir -p $PKG/var/lib/clamav $PKG/var/log/clamav $PKG/var/run/clamav
-chmod 771 $PKG/var/lib/clamav $PKG/var/log/clamav $PKG/var/run/clamav
+chmod 0771 $PKG/var/log/clamav $PKG/var/run/clamav
+chmod 0775 $PKG/var/lib/clamav
# Fixup some ownership and permissions issues
chown -R root:root $PKG
@@ -189,14 +190,13 @@ if [ "$milter" = "en" ]; then
chown clamav $PKG/usr/sbin/clamav-milter
chmod 4700 $PKG/usr/sbin/clamav-milter
fi
-chmod 0770 $PKG/var/lib/clamav
touch $PKG/var/lib/clamav/main.cvd $PKG/var/lib/clamav/daily.cvd
chmod 0660 $PKG/var/lib/clamav/*
# Create log files in such a way that they won't clobber existing ones
touch $PKG/var/log/clamav/clamd.log.new \
$PKG/var/log/clamav/freshclam.log.new
-chmod 660 $PKG/var/log/clamav/clamd.log.new \
+chmod 0660 $PKG/var/log/clamav/clamd.log.new \
$PKG/var/log/clamav/freshclam.log.new
chown -R clamav:clamav $PKG/var/lib/clamav $PKG/var/log/clamav \