We’ve a pre-built command line tool (called atcli) which aims to transfer files/directory to remote locations.
For that purpose, “atcli” needs access to filesystem + network.
Is this sufficient:
$ cat snapcraft.yaml
name: atcli
version: 1.0.1
summary: Cross-Platform Managed File Transfer Service
description: |
ATCli allows securely transfer large files and directory at speed of light
My command is able to access /var/log/clamav/clamav.log but unable to access /var/lib/xml-core/docbook-xml. Permissions to these files are the same and they are both under /var directory.