Im configuring openvas and the scanner looks for the redis.sock by default in /tmp/redis.sock.
I have edited to the redis.conf config file to show
unixsocket /tmp/redis.sock
unixsocketperm 777
Upon restarting the service, it instead places the redis.sock in /tmp/systemd-private34823472372937527347-redis-server/tmp/redis.sock
Any help? Debian stretch 9.1 redis-server : 3.2.6
After every restart of the redis-server (sudo service redis-server restart), If I manually move the redis.sock back to /tmp then it fixes the issues. But, not great having to manually move it with every restart of redis-server.
Instead of turning off the privatetmp security feature of systemd configure redis (redis.conf) to use /var/run/redis/redis.sock and add the following to your $prefix/etc/openvas/openvassd.conf:
kb_location = /var/run/redis/redis.sock