This is my test:

The runscript
-------------
#!/bin/sh
CAFILE="/usr/local/ssl/certs/pop3s.cert"
CERTFILE="/usr/local/ssl/certs/pop3s.cert"
KEYFILE="/usr/local/ssl/certs/pop3s.key"
DHFILE="/usr/local/ssl/certs/dh1024.pem"
export CAFILE CERTFILE KEYFILE DHFILE
exec /usr/local/bin/softlimit -m 3800000 \
/usr/local/bin/sslserver -v -R -H -l 0 0 995 ktrace -f /tmp/ktrace.out
/var/qmail/bin/qmail-popup \
nesys.it /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1

Test
----
observe# openssl s_client -connect 127.0.0.1:995
CONNECTED(00000004)
<cut>
---
+OK <[EMAIL PROTECTED]>
USER [EMAIL PROTECTED]
+OK 
PASS test
+OK 
LIST
+OK 
.
QUIT
DONE
observe# kdump -f ktrace.out > kdump.out

The result
-----------
  5752 ktrace   RET   ktrace 0
  5752 ktrace   CALL  execve(0xcfbfd8e6,0xcfbfd884,0xcfbfd89c)
  5752 ktrace   NAMI  "/var/qmail/bin/qmail-popup"
  5752 qmail-popup EMUL  "native"
  5752 qmail-popup RET   execve 0
  5752 qmail-popup CALL  open(0x10e5,0,0)
  5752 qmail-popup NAMI  "/usr/libexec/ld.so"
  5752 qmail-popup RET   open 3
  5752 qmail-popup CALL  read(0x3,0xcfbfd90c,0x20)
  5752 qmail-popup GIO   fd 3 read 32 bytes
       "[EMAIL PROTECTED] \0\0\0\0\0\0\0\0\0\0
\0\0\0\0\0\0\0\0\0\0\0"
  5752 qmail-popup RET   read 32/0x20
  5752 qmail-popup CALL  mmap(0,0xf000,0x5,0x2,0x3,0,0,0)
  5752 qmail-popup RET   mmap 1073762304/0x40005000
  5752 qmail-popup CALL  mmap(0x40012000,0x2000,0x7,0x12,0x3,0,0xd000,0)
  5752 qmail-popup RET   mmap 1073815552/0x40012000
  5752 qmail-popup CALL  issetugid
  5752 qmail-popup RET   issetugid 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd77c,0x2,0x40013a08,0xcfbfd778,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  mmap(0,0x8000,0x3,0x1004,0xffffffff,0,0,0)
  5752 qmail-popup RET   mmap 1073823744/0x40014000
  5752 qmail-popup CALL  open(0x40006b74,0,0)
  5752 qmail-popup NAMI  "/var/run/ld.so.hints"
  5752 qmail-popup RET   open 4
  5752 qmail-popup CALL  fstat(0x4,0xcfbfd724)
  5752 qmail-popup RET   fstat 0
  5752 qmail-popup CALL  mmap(0,0x1bcb,0x1,0x4,0x4,0,0,0)
  5752 qmail-popup RET   mmap 1073856512/0x4001c000
  5752 qmail-popup CALL  open(0x4001d093,0,0)
  5752 qmail-popup NAMI  "/usr/lib/libc.so.29.0"
  5752 qmail-popup RET   open 5
  5752 qmail-popup CALL  read(0x5,0xcfbfd804,0x20)
  5752 qmail-popup GIO   fd 5 read 32 bytes
       "[EMAIL PROTECTED]
\0\0\0\0\0\0\0\0\0\0\0"
  5752 qmail-popup RET   read 32/0x20
  5752 qmail-popup CALL  mmap(0,0xbd6f0,0x5,0x4,0x5,0,0,0)
  5752 qmail-popup RET   mmap 1073864704/0x4001e000
  5752 qmail-popup CALL  mprotect(0x400a4000,0x9000,0x7)
  5752 qmail-popup RET   mprotect 0
  5752 qmail-popup CALL
mmap(0x400ad000,0x2e6f0,0x3,0x1014,0xffffffff,0,0,0)
  5752 qmail-popup RET   mmap 1074450432/0x400ad000
  5752 qmail-popup CALL  close(0x5)
  5752 qmail-popup RET   close 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd72c,0x2,0x400abb6c,0xcfbfd728,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd72c,0x2,0x400abb70,0xcfbfd728,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd72c,0x2,0x400abb74,0xcfbfd728,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd72c,0x2,0x400abb78,0xcfbfd728,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd72c,0x2,0x400abb7c,0xcfbfd728,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd72c,0x2,0x400abb80,0xcfbfd728,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd72c,0x2,0x400abb84,0xcfbfd728,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd72c,0x2,0x400abb88,0xcfbfd728,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  munmap(0x4001c000,0x1bcb)
  5752 qmail-popup RET   munmap 0
  5752 qmail-popup CALL  close(0x4)
  5752 qmail-popup RET   close 0
  5752 qmail-popup CALL  close(0x3)
  5752 qmail-popup RET   close 0
  5752 qmail-popup CALL  __sysctl(0xcfbfd8b4,0x2,0x400db6e8,0xcfbfd8b0,0,0)
  5752 qmail-popup RET   __sysctl 0
  5752 qmail-popup CALL  readlink(0x400655f6,0xcfbfd80c,0x3f)
  5752 qmail-popup NAMI  "/etc/malloc.conf"
  5752 qmail-popup RET   readlink -1 errno 2 No such file or directory
  5752 qmail-popup CALL  issetugid
  5752 qmail-popup RET   issetugid 0
  5752 qmail-popup CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
  5752 qmail-popup RET   mmap 1073856512/0x4001c000
  5752 qmail-popup CALL  break(0x5558)
  5752 qmail-popup RET   break 0
  5752 qmail-popup CALL  break(0x5558)
  5752 qmail-popup RET   break 0
  5752 qmail-popup CALL  break(0x7000)
  5752 qmail-popup RET   break 0
  5752 qmail-popup CALL  break(0x7000)
  5752 qmail-popup RET   break 0
  5752 qmail-popup CALL  break(0x8000)
  5752 qmail-popup RET   break 0
  5752 qmail-popup CALL  mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0)
  5752 qmail-popup RET   mmap 1073860608/0x4001d000
  5752 qmail-popup CALL  mprotect(0x4001d000,0x1000,0x1)
  5752 qmail-popup RET   mprotect 0
  5752 qmail-popup CALL  mprotect(0x4001d000,0x1000,0x3)
  5752 qmail-popup RET   mprotect 0
  5752 qmail-popup CALL  mprotect(0x4001d000,0x1000,0x1)
  5752 qmail-popup RET   mprotect 0
  5752 qmail-popup CALL  sigaction(0xe,0xcfbfd8c4,0)
  5752 qmail-popup RET   sigaction 0
  5752 qmail-popup CALL  sigaction(0xd,0xcfbfd8c4,0)
  5752 qmail-popup RET   sigaction 0
  5752 qmail-popup CALL  getpid
  5752 qmail-popup RET   getpid 5752/0x1678
  5752 qmail-popup CALL  gettimeofday(0xcfbfd8a0,0)
  5752 qmail-popup RET   gettimeofday 0
  5752 qmail-popup CALL  select(0x2,0,0xcfbfd820,0,0xcfbfd818)
  5752 qmail-popup RET   select 1
  5752 qmail-popup CALL  write(0x1,0x54b8,0x20)
  5752 qmail-popup GIO   fd 1 wrote 32 bytes
       "+OK <[EMAIL PROTECTED]>\r
       "
  5752 qmail-popup RET   write 32/0x20
  5752 qmail-popup CALL  select(0x1,0xcfbfd7e0,0,0,0xcfbfd7d8)
  5752 qmail-popup RET   select 1
  5752 qmail-popup CALL  read(0,0x5338,0x80)
  5752 qmail-popup GIO   fd 0 read 19 bytes
       "USER [EMAIL PROTECTED]
       "
  5752 qmail-popup RET   read 19/0x13
  5752 qmail-popup CALL  select(0x2,0,0xcfbfd7c0,0,0xcfbfd7b8)
  5752 qmail-popup RET   select 1
  5752 qmail-popup CALL  write(0x1,0x54b8,0x6)
  5752 qmail-popup GIO   fd 1 wrote 6 bytes
       "+OK \r
       "
  5752 qmail-popup RET   write 6
  5752 qmail-popup CALL  select(0x1,0xcfbfd7e0,0,0,0xcfbfd7d8)
  5752 qmail-popup RET   select 1
  5752 qmail-popup CALL  read(0,0x5338,0x80)
  5752 qmail-popup GIO   fd 0 read 10 bytes
       "PASS test
       "
  5752 qmail-popup RET   read 10/0xa
  5752 qmail-popup CALL  fcntl(0x1,0x3,0)
  5752 qmail-popup RET   fcntl 2
  5752 qmail-popup CALL  close(0x2)
  5752 qmail-popup RET   close 0
  5752 qmail-popup CALL  fcntl(0x1,0,0x2)
  5752 qmail-popup RET   fcntl 2
  5752 qmail-popup CALL  close(0x3)
  5752 qmail-popup RET   close -1 errno 9 Bad file descriptor
  5752 qmail-popup CALL  pipe(0xcfbfd898)
  5752 qmail-popup RET   pipe 0
  5752 qmail-popup CALL  fork
  5752 qmail-popup RET   fork 19941/0x4de5
  5752 qmail-popup CALL  close(0x3)
  5752 qmail-popup RET   close 0
  5752 qmail-popup CALL  write(0x4,0x52b8,0x2e)
  5752 qmail-popup GIO   fd 4 wrote 46 bytes
       "[EMAIL PROTECTED]<[EMAIL PROTECTED]>\0"
  5752 qmail-popup RET   write 46/0x2e
  5752 qmail-popup CALL  close(0x4)
  5752 qmail-popup RET   close 0
  5752 qmail-popup CALL  wait4(0x4de5,0xcfbfd894,0,0)
  5752 qmail-popup RET   wait4 19941/0x4de5
  5752 qmail-popup CALL  exit(0x1)

Thanks for your help
Regards
Andrea

Reply via email to