resolving problems running chroot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



HI!

after sucessfully testing nntpcache in a "normal" Linux environment I
wanted to test it run chrooted.

I copied the necessary libs to [jail]/libs and necessary config files to
[jail]/etc. The jail looks like this:

cachedir:
total 262
drwx------   3 nntpcach nntpcach     1024 Feb 22 13:00 ./
drwxr-xr-x   8 root     root         1024 Feb 17 17:07 ../
-rw-r--r--   1 nntpcach nntpcach        4 Feb 22 12:59 cache.base
-rw-r--r--   1 nntpcach nntpcach 16781312 Feb 22 13:00 cache.mmap
-rw-r--r--   1 nntpcach nntpcach        4 Feb 22 13:00
nntpcache.pid.DEFAULT:119
-rw-r--r--   1 nntpcach nntpcach     4244 Feb 22 13:00 nntpcache.stats
drwxr-xr-x   2 root     root         1024 Dec  3 19:48 pgp/

dev:
total 2
drwxr-xr-x   2 root     root         1024 Feb 21 16:31 ./
drwxr-xr-x   8 root     root         1024 Feb 17 17:07 ../
srw-rw-rw-   1 root     root            0 Feb 15 17:54 log=
crw-rw-rw-   1 root     root       1,   3 Feb 21 16:31 null

etc:
total 6
drwxr-xr-x   2 root     root         1024 Feb 22 12:59 ./
drwxr-xr-x   8 root     root         1024 Feb 17 17:07 ../
-rw-r--r--   1 root     root           27 Feb 22 12:45 host.conf
-rw-r--r--   1 root     root          537 Feb 22 12:42 hosts
-rw-r--r--   1 root     root           59 Feb 15 17:52 passwd
-rw-r--r--   1 root     root           45 Feb 22 12:43 resolv.conf

http:
total 2
drwxr-xr-x   2 root     root         1024 Feb 17 17:07 ./
drwxr-xr-x   8 root     root         1024 Feb 17 17:07 ../

lib:
total 2853
drwxr-xr-x   2 root     root         1024 Feb 22 12:38 ./
drwxr-xr-x   8 root     root         1024 Feb 17 17:07 ../
-rwxr-xr-x   1 root     root       149372 Feb 15 18:09 ld-linux.so.2*
-rwxr-xr-x   1 root     root      2478585 Feb 15 18:09 libc.so.6*
-rwxr-xr-x   1 root     root       106712 Feb 22 12:37 libnsl.so.1*
-rwxr-xr-x   1 root     root       168956 Feb 22 12:35 libresolv.so.2*

usr:
total 3
drwxr-xr-x   3 root     root         1024 Feb 15 18:06 ./
drwxr-xr-x   8 root     root         1024 Feb 17 17:07 ../
drwxr-xr-x   2 root     root         1024 Feb 15 18:05 bin/


But it seems that I still have problems with the name resolving.

Feb 22 13:00:29 out-gate nntpcached[457]: nntpcache.c:1528: cwd now
/etc/nntpcache
Feb 22 13:00:29 out-gate nntpcached[457]: nntpcache.c:1558: cwd now
/cachedir
Feb 22 13:00:29 out-gate nntpcached[457]: nntpcache.c:482: starting
update task
Feb 22 13:00:29 out-gate nntpcached[457]: waiting for NTTP connections
on DEFAULT:119
Feb 22 13:00:29 out-gate nntpcached[457]: waiting for HTTP connections
on DEFAULT:9119
Feb 22 13:00:29 out-gate nntpcache-update[458]: update task awakening
Feb 22 13:00:29 out-gate nntpcache-update[458]: checking server
kilbeggan.xlink.net. for 'overview.fmt'
Feb 22 13:00:29 out-gate nntpcache-update[458]: sockets.c:74:No such
file or directory: could not convert 'kilbeggan.xlink.net.' to an
address
Feb 22 13:00:29 out-gate nntpcache-update[458]: sockets.c:160:No such
file or directory: couldn't connect to kilbeggan.xlink.net. as
194.120.230.2
Feb 22 13:00:29 out-gate nntpcache-update[458]: sockets.c:286:No such
file or directory: Stest(-1) -- server down?

Some hints on this?

Ciao, Michael.


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux