[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ktracing chrooted Apache: file errors
Running ktrace on Apache non-chrooted, I noticed the following on shutdown:
16923 httpd GIO fd 15 wrote 66 bytes
"[Mon Sep 30 23:59:08 2002] [notice] caught SIGTERM, shutting down
"
16923 httpd RET write 66/0x42
16923 httpd CALL close(0xf)
16923 httpd RET close 0
16923 httpd CALL __semctl(0x170001,0,0,0)
16923 httpd RET __semctl 0
16923 httpd CALL close(0x15)
16923 httpd RET close 0
16923 httpd CALL close(0x14)
16923 httpd RET close 0
16923 httpd CALL close(0x13)
16923 httpd RET close 0
16923 httpd CALL close(0x12)
16923 httpd RET close 0
16923 httpd CALL unlink(0xdb034)
16923 httpd NAMI "/var/www/logs/ssl_scache.db"
16923 httpd RET unlink 0
16923 httpd CALL unlink(0xdb054)
16923 httpd NAMI "/var/www/logs/ssl_scache.db"
16923 httpd RET unlink -1 errno 2 No such file or directory
16923 httpd CALL unlink(0xdb074)
16923 httpd NAMI "/var/www/logs/ssl_scache.dir"
16923 httpd RET unlink -1 errno 2 No such file or directory
16923 httpd CALL unlink(0xdb094)
16923 httpd NAMI "/var/www/logs/ssl_scache.pag"
16923 httpd RET unlink -1 errno 2 No such file or directory
16923 httpd CALL unlink(0xdb0b4)
16923 httpd NAMI "/var/www/logs/ssl_scache.db"
16923 httpd RET unlink -1 errno 2 No such file or directory
16923 httpd CALL unlink(0xbd134)
16923 httpd NAMI "/var/www/logs/ssl_scache"
16923 httpd RET unlink -1 errno 2 No such file or directory
16923 httpd CALL __semctl(0x170000,0,0,0)
16923 httpd RET __semctl 0
16923 httpd CALL close(0x11)
16923 httpd RET close 0
16923 httpd CALL close(0x10)
16923 httpd RET close 0
16923 httpd CALL munmap(0x4027a000,0x1000)
16923 httpd RET munmap 0
16923 httpd CALL exit(0)
but with it chrooted, it logs this:
22142 httpd GIO fd 15 wrote 66 bytes
"[Mon Sep 30 23:55:11 2002] [notice] caught SIGTERM, shutting down
"
22142 httpd RET write 66/0x42
22142 httpd CALL close(0xf)
22142 httpd RET close 0
22142 httpd CALL __semctl(0x160001,0,0,0)
22142 httpd RET __semctl 0
22142 httpd CALL close(0x12)
22142 httpd RET close 0
22142 httpd CALL unlink(0xdb034)
22142 httpd NAMI "/logs/ssl_scache.db"
22142 httpd RET unlink -1 errno 13 Permission denied
22142 httpd CALL unlink(0xdb04c)
22142 httpd NAMI "/logs/ssl_scache.db"
22142 httpd RET unlink -1 errno 13 Permission denied
22142 httpd CALL unlink(0xdb064)
22142 httpd NAMI "/logs/ssl_scache.dir"
22142 httpd RET unlink -1 errno 2 No such file or directory
22142 httpd CALL unlink(0xdb07c)
22142 httpd NAMI "/logs/ssl_scache.pag"
22142 httpd RET unlink -1 errno 2 No such file or directory
22142 httpd CALL unlink(0xdb094)
22142 httpd NAMI "/logs/ssl_scache.db"
22142 httpd RET unlink -1 errno 13 Permission denied
22142 httpd CALL unlink(0xbd134)
22142 httpd NAMI "/logs/ssl_scache"
22142 httpd RET unlink -1 errno 2 No such file or directory
22142 httpd CALL __semctl(0x160000,0,0,0)
22142 httpd RET __semctl 0
22142 httpd CALL close(0x11)
22142 httpd RET close 0
22142 httpd CALL close(0x10)
22142 httpd RET close 0
22142 httpd CALL close(0x6)
22142 httpd RET close 0
22142 httpd CALL close(0x5)
22142 httpd RET close 0
22142 httpd CALL munmap(0x4027a000,0x1000)
22142 httpd RET munmap 0
22142 httpd CALL exit(0)
It seems that if the file exists, it can't access it.
uname -srvp: OpenBSD 3.2 GENERIC#31 Intel Pentium/MMX ("GenuineIntel"
586-class)
To reproduce:
httpd -DSSL
ktrace -dp <pid>
apachectl stop
kdump
compare to:
httpd -DSSL -u
ktrace -dp <pid>
apachectl stop
kdump