OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Magnus Ljung (maljhp.se)
Date: Thu May 03 2001 - 04:40:04 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Hi!

    I'm having problems with chrooting smtpd on hp-ux 11.x

    What happens is that the name resolving stops working.
    i.e I get connect from unknown [x.x.x.x] in the mail.log

    Using local /etc/hosts file works fine, but dns lookups fail.

    I have copied the following files into the chrooted enviroment:

    etc/resolv.conf
    etc/hosts
    etc/services
    etc/nsswitch.conf

    usr/lib/tztab
    usr/lib/libxti.2
    usr/lib/libnss_files.1
    usr/lib/libnss_dns.1
    usr/lib/libnss_compat.1
    usr/lib/libnsl.1
    usr/lib/libdld.2
    usr/lib/libc.2

    When using tusc I see the following, it seems like there are some
    errors messages written to standard error:

    2214]{2253} write(2, "/ u s r / l i b / d l d . s l : ".., 77) .. = 77
    [2214]{2253} write(2, "/ u s r / l i b / l i b c . 2 ", 15) ...... = 15
    [2214]{2253} write(2, "\n", 1) ................................... = 1
    [2214]{2253} write(2, "/ u s r / l i b / d l d . s l : ".., 35) .. = 35

    I dont know how to catch the full error messages, because they
    don't end up in the syslog or on the console. Any ideas?

    Have someone gotten this to work on hp-ux 11.x?

    Full TUSC output:

    [2214]{2253} getpeername(8, 0x7f7e0808, 0x7f7e0818) .............. = 0
    [2214]{2253} open("/etc/nsswitch.conf", O_RDONLY, 0666) .......... = 9
    [2214]{2253} ioctl(9, TCGETA, 0x7f7e1070) ........................ ERR#25
    ENOTTY Command: _IOR('T', 1, 18)
    [2214]{2253} read(9, "# \n# / e t c / n s s w i t c ".., 8192) . = 157
    [2214]{2253} read(9, 0x4000f470, 8192) ........................... = 0
    [2214]{2253} close(9) ............................................ = 0
    [2214]{2253} open("/usr/lib/libnss_files.1", O_RDONLY, 0) ........ = 9
    [2214]{2253} fstat(9, 0x7f7e0ff0) ................................ = 0
    [2214]{2253} read(9, "0210010e0512 \0\0\0\0\0\0\0\0\0".., 128) .. = 128
    [2214]{2253} lseek(9, 128, SEEK_SET) ............................. = 128
    [2214]{2253} read(9, "10\0\004\0\0\0( \0\0d \ \0\010\0".., 48) ... = 48
    [2214]{2253} read(9, "80\0\0\v\0\0\004\0\0\0\0", 12) ............. = 12
    [2214]{2253} lseek(9, 8192, SEEK_SET) ............................ = 8192
    [2214]{2253} read(9, "058cy 10\0\0\0 \0\0\0p \0\0\002".., 112) .. = 112
    [2214]{2253} mmap(NULL, 28672, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB,
    9, 0x2000) = 0xc0e25000
    [2214]{2253} mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
    MAP_PRIVATE|MAP_SHLIB, 9, 0x9000) = 0x7f6eb000
    [2214]{2253} close(9) ............................................ = 0
    [2214]{2253} open("/usr/lib/libdld.2", O_RDONLY, 0) .............. = 9
    [2214]{2253} fstat(9, 0x7f7e10f0) ................................ = 0
    [2214]{2253} read(9, "02\v010e0512 \0\0\0\0\0\0\0\0\0".., 128) .. = 128
    [2214]{2253} lseek(9, 128, SEEK_SET) ............................. = 128
    [2214]{2253} read(9, "10\0\004\0\0\0( \0\0# 4 \0\010\0".., 48) ... = 48
    [2214]{2253} read(9, "80\0\0\v\0\0\004\0\0\0\0", 12) ............. = 12
    [2214]{2253} lseek(9, 8192, SEEK_SET) ............................ = 8192
    [2214]{2253} read(9, "058cy 10\0\0\0\f\0\00198\0\0\001".., 112) .. = 112
    [2214]{2253} mmap(NULL, 12288, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB,
    9, 0x2000) = 0xc10e1000
    [2214]{2253} mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
    MAP_PRIVATE|MAP_SHLIB, 9, 0x5000) = 0x7f6ea000
    [2214]{2253} close(9) ............................................ = 0
    [2214]{2253} open("/etc/hosts", O_RDONLY, 0666) .................. = 9
    [2214]{2253} brk(0x40014000) ..................................... = 0
    [2214]{2253} ioctl(9, TCGETA, 0x7f7e0eb0) ........................ ERR#25
    ENOTTY Command: _IOR('T', 1, 18)
    [2214]{2253} read(9, "# ( # ) h o s t s $ R e v ".., 8192) . = 540
    [2214]{2253} read(9, 0x40011500, 8192) ........................... = 0
    [2214]{2253} close(9) ............................................ = 0
    [2214]{2253} open("/usr/lib/libnss_dns.1", O_RDONLY, 0) .......... = 9
    [2214]{2253} fstat(9, 0x7f7e0ff0) ................................ = 0
    [2214]{2253} read(9, "0210010e0512 \0\0\0\0\0\0\0\0\0".., 128) .. = 128
    [2214]{2253} lseek(9, 128, SEEK_SET) ............................. = 128
    [2214]{2253} read(9, "10\0\004\0\0\0( \0\04 t \0\010\0".., 48) ... = 48
    [2214]{2253} read(9, "80\0\0\v\0\0\004\0\0\0\0", 12) ............. = 12
    [2214]{2253} lseek(9, 12288, SEEK_SET) ........................... = 12288
    [2214]{2253} read(9, "058cy 10\0\0\0\f\0\0\0p \0\0\003".., 112) .. = 112
    [2214]{2253} mmap(NULL, 16384, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB,
    9, 0x3000) = 0xc10e4000
    [2214]{2253} mmap(NULL, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
    MAP_PRIVATE|MAP_SHLIB, 9, 0x7000) = 0x7f6e9000
    [2214]{2253} close(9) ............................................ = 0
    [2214]{2253} stat("/usr/lib/libdld.2", 0x7f7e1028) ............... = 0
    [2214]{2253} open("/usr/lib/libdld.2", O_RDONLY, 02) ............. = 9
    [2214]{2253} fstat(9, 0x7f7e10f0) ................................ = 0
    [2214]{2253} read(9, "02\v010e0512 \0\0\0\0\0\0\0\0\0".., 128) .. = 128
    [2214]{2253} lseek(9, 128, SEEK_SET) ............................. = 128
    [2214]{2253} read(9, "10\0\004\0\0\0( \0\0# 4 \0\010\0".., 48) ... = 48
    [2214]{2253} read(9, "80\0\0\v\0\0\004\0\0\0\0", 12) ............. = 12
    [2214]{2253} lseek(9, 8192, SEEK_SET) ............................ = 8192
    [2214]{2253} read(9, "058cy 10\0\0\0\f\0\00198\0\0\001".., 112) .. = 112
    [2214]{2253} mmap(NULL, 12288, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB,
    9, 0x2000) ERR#12 ENOMEM
    [2214]{2253} close(9) ............................................ = 0
    [2214]{2253} stat("/usr/lib/libc.2", 0x7f7e1028) ................. = 0
    [2214]{2253} open("/usr/lib/libc.2", O_RDONLY, 0) ................ = 9
    [2214]{2253} fstat(9, 0x7f7e10f0) ................................ = 0
    [2214]{2253} read(9, "0210010e0512 \0\0\0\0\0\0\0\0\0".., 128) .. = 128
    [2214]{2253} lseek(9, 128, SEEK_SET) ............................. = 128
    [2214]{2253} read(9, "10\0\004\0\0\0( \012v d \0\010\0".., 48) ... = 48
    [2214]{2253} read(9, "80\0\0\v\0\0\004\0\0\0\0", 12) ............. = 12
    [2214]{2253} lseek(9, 282624, SEEK_SET) .......................... =
    282624
    [2214]{2253} read(9, "058cy 10\0\006e4\0\0G a8\0\0\002".., 112) .. = 112
    [2214]{2253} mmap(NULL, 1212416, PROT_READ|PROT_EXEC,
    MAP_SHARED|MAP_SHLIB, 9, 0x45000) = 0xc1c25000
    [2214]{2253} munmap(0xc1c25000, 1212416) ......................... = 0
    [2214]{2253} close(9) ............................................ = 0
    [2214]{2253} write(2, "/ u s r / l i b / d l d . s l : ".., 77) .. = 77
    [2214]{2253} write(2, "/ u s r / l i b / l i b c . 2 ", 15) ...... = 15
    [2214]{2253} write(2, "\n", 1) ................................... = 1
    [2214]{2253} write(2, "/ u s r / l i b / d l d . s l : ".., 35) .. = 35
    [2214]{2253} time(NULL) .......................................... =
    988879716
    [2214]{2253} time(0x7f7e1934) .................................... =
    988879716
      Thu May 3 10:48:36 2001
    [2214]{2253} open("/usr/lib/tztab", O_RDONLY, 0145204) ........... = 9
    [2214]{2253} read(9, "# ( # ) $ R e v i s i o n ".., 128) .. = 128
    [2214]{2253} read(9, " M E S Z - 2 \n0 2 2 4 - ".., 128) .. = 128
    [2214]{2253} read(9, "h t S a v i n g s T i m e \n".., 128) .. = 128
    [2214]{2253} read(9, "1 \n\n# G r e e n w i c h ".., 128) .. = 128
    [2214]{2253} close(9) ............................................ = 0

    -
    To unsubscribe, send mail to majordomopostfix.org with content
    (not subject): unsubscribe postfix-users