From 780a84e8bead3cbbdda09c479ab793081ecf9903 Mon Sep 17 00:00:00 2001 From: Paul Donald Date: Tue, 8 Oct 2024 18:48:49 +0200 Subject: luci-app-clamav: Convert to JS Added functionality for clamav-milter and freshclam which are also in the package. Assumptions: clamd.log will always be in /tmp, so read permissions are granted for /tmp/*, in case the log file gets moved or renamed. Don't expose the LogFile* parameters to avoid logfile related location problems. Added entries to use syslogging for each component, and added a Log tab. Tested on 23.05.5 Signed-off-by: Paul Donald --- .../root/usr/share/rpcd/acl.d/luci-app-clamav.json | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'applications/luci-app-clamav/root/usr/share/rpcd') diff --git a/applications/luci-app-clamav/root/usr/share/rpcd/acl.d/luci-app-clamav.json b/applications/luci-app-clamav/root/usr/share/rpcd/acl.d/luci-app-clamav.json index 09d46d08bb..06529a01f3 100644 --- a/applications/luci-app-clamav/root/usr/share/rpcd/acl.d/luci-app-clamav.json +++ b/applications/luci-app-clamav/root/usr/share/rpcd/acl.d/luci-app-clamav.json @@ -2,10 +2,18 @@ "luci-app-clamav": { "description": "Grant UCI access for luci-app-clamav", "read": { - "uci": [ "clamav" ] + "file": [ "/tmp/*" ], + "uci": [ "clamav", "clamav-milter", "freshclam" ] }, "write": { - "uci": [ "clamav" ] + "file": { + "/etc/init.d/clamav *": [ "exec" ], + "/etc/init.d/clamav-milter *": [ "exec" ], + "/etc/init.d/freshclam *": [ "exec" ], + "/sbin/logread -e clamav": [ "exec" ], + "/usr/sbin/logread -e clamav": [ "exec" ] + }, + "uci": [ "clamav", "clamav-milter", "freshclam" ] } } } -- cgit v1.2.3