All of those path exists, and since openvas should be running as root, it shouldn’t have any issues with permissions right? I’m not seeing any file open/write/read errors on an strace, so I’m thinking I have them all.
openvas will run with the following options:
–help
–version
–cfg-specs
–sysconfdir
–scan-start
–scan-stop
But running it with no options or --update-vt-info causes a coredump.
Not sure if it will help, but here’s the tail of ’ strace openvas --update-vt-info ’
socket(AF_UNIX, SOCK_STREAM, 0) = 3
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0
connect(3, {sa_family=AF_UNIX, sun_path="/run/redis/redis.sock"}, 110) = 0
fcntl(3, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl(3, F_SETFL, O_RDWR) = 0
write(3, “*3\r\n$6\r\nCONFIG\r\n$3\r\nGET\r\n$9\r\ndat”…, 40) = 40
read(3, “*2\r\n$9\r\ndatabases\r\n$3\r\n512\r\n”, 16384) = 28
write(3, “*3\r\n$7\r\nHEXISTS\r\n$19\r\nGVM.__Glob”…, 50) = 50
read(3, “:1\r\n”, 16384) = 4
write(3, “*2\r\n$6\r\nSELECT\r\n$1\r\n1\r\n”, 23) = 23
read(3, “+OK\r\n”, 16384) = 5
write(3, “*3\r\n$6\r\nLINDEX\r\n$9\r\nnvticache\r\n$”…, 39) = 39
read(3, “$1\r\n0\r\n”, 16384) = 7
stat("/var/lib/openvas/plugins", {st_mode=S_IFDIR|0775, st_size=270336, …}) = 0
getpid() = 1010
getppid() = 1007
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0
stat("/", {st_mode=S_IFDIR|0755, st_size=4096, …}) = 0
chdir("/var/lib/openvas/plugins") = 0
openat(AT_FDCWD, “/var/lib/openvas/plugins/plugin_feed_info.inc”, O_RDONLY) = 4
fstat(4, {st_mode=S_IFREG|0664, st_size=1014, …}) = 0
read(4, “# Copyright © 2021 Greenbone N”…, 1014) = 1014
close(4) = 0
getpid() = 1010
chdir("/") = 0
getpid() = 1010
— SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=NULL} —
+++ killed by SIGSEGV (core dumped) +++
Segmentation fault (core dumped)