I am trying to figure out if a state of a stopped scan task is in any way dependent on the data stored in Redis databases. If Redis databases are flushed when system restarts, openvassd is started and stopped task is resumed, does that fact that redis databases were flushed cancel the task’s real progress or affect its results in any way?
Ok, I figured it out by looking at the old irc logs of #openvas on OFTC.
- One redis db is reserved for one host scanned.
- When a network scan task is stopped, only hosts that were scanned completely will not be rescanned. Hosts that have their scanning cancelled in the middle will be scanned from the beginning after the task was resumed.
- Since the host will be scanned from the beginning after resume anyway, the old data in redis has no use.