>mkdir /tmp/clam-trace
>strace -ff -o /tmp/clam-trace/clam <комманда старта clamav и её аргументы>
>
>После этого в дереве греппать по поводу /dev/null Вот чем заканчивается
...
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=708, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=708, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=708, ...}) = 0
getpid() = 15695
socket(PF_FILE, SOCK_DGRAM, 0) = 5
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
connect(5, {sa_family=AF_FILE, path="/dev/log"}, 16) = -1 EACCES (Permission denied)
close(5) = 0
listen(4, 15) = 0
open("/dev/null", O_RDONLY) = -1 EACCES (Permission denied)
open("/dev/null", O_WRONLY) = -1 EACCES (Permission denied)
open("/dev/null", O_WRONLY) = -1 EACCES (Permission denied)
write(2, "Can\'t open /dev/null\n", 21) = 21
stat64("/var/log/clamd", {st_mode=S_IFREG|0640, st_size=10793, ...}) = 0
write(3, "ERROR: daemonize() failed\n", 26) = 26
time([1226888939]) = 1226888939
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=708, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=708, ...}) = 0
stat64("/etc/localtime", {st_mode=S_IFREG|0644, st_size=708, ...}) = 0
getpid() = 15695
socket(PF_FILE, SOCK_DGRAM, 0) = 5
fcntl64(5, F_SETFD, FD_CLOEXEC) = 0
connect(5, {sa_family=AF_FILE, path="/dev/log"}, 16) = -1 EACCES (Permission denied)
close(5) = 0
write(2, "ERROR: daemonize() failed\n", 26) = 26
close(3) = 0
munmap(0x40017000, 4096) = 0
exit_group(1) = ?
Права ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 2008-11-17 10:50 /dev/null