diff options
author | Paul Donald <newtwen+github@gmail.com> | 2024-10-08 18:48:49 +0200 |
---|---|---|
committer | Paul Donald <newtwen+github@gmail.com> | 2024-10-09 00:40:21 +0200 |
commit | 780a84e8bead3cbbdda09c479ab793081ecf9903 (patch) | |
tree | 113630761cb74c4f3b9cb3172293273bb774ce1d /applications/luci-app-clamav/root/usr/share/rpcd/acl.d | |
parent | d35b658d8a7d7a8f0872e46c5182b05de4500495 (diff) |
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 <newtwen+github@gmail.com>
Diffstat (limited to 'applications/luci-app-clamav/root/usr/share/rpcd/acl.d')
-rw-r--r-- | applications/luci-app-clamav/root/usr/share/rpcd/acl.d/luci-app-clamav.json | 12 |
1 files changed, 10 insertions, 2 deletions
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" ] } } } |