From: Eugene Prokopiev <prokopiev@stc.donpac.ru> To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org> Subject: Re: [sisyphus] dns и etcnet Date: Tue, 28 Mar 2006 11:11:39 +0400 Message-ID: <4428E1AB.4030906@ats-manager.stc.donpac.ru> (raw) In-Reply-To: <4423FBFD.9020804@ats-manager.stc.donpac.ru> Выяснилось, что виноват сам ping, т.к. простейшая программка на С, использующая gethostbyname, адреса вполне себе разрешает. Полный вывод strace -f ping test в аттаче. Мне непонятен следующий фрагмент: chroot("/var/resolv") = 0 chdir("/") = 0 setgid32(101) = 0 setuid32(100) = 0 open("/dev/urandom", O_RDONLY) = -1 ENOENT (No such file or directory) getpid() = 2824 getppid() = 2823 gettimeofday({1143540140, 102722}, NULL) = 0 getpid() = 2824 open("/dev/urandom", O_RDONLY) = -1 ENOENT (No such file or directory) times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718341389 open("/etc/resolv.conf", O_RDONLY) = -1 EACCES (Permission denied) Ну ладно, /dev/urandom в чруте действительно отсутствует, но /etc/resolv.conf на месте и с нормальными правами: # ls -lR /var/resolv /var/resolv: total 12 drwx------ 2 root root 4096 Mar 24 20:00 etc drwxr-xr-x 2 root root 4096 Mar 21 13:35 lib drwxr-xr-x 4 root root 4096 Mar 20 11:34 var /var/resolv/etc: total 44 -rw-r--r-- 1 root root 26 Jan 19 2004 host.conf -rw-r--r-- 1 root root 80 Mar 24 20:00 hosts -rw-r--r-- 1 root root 815 Mar 6 13:36 localtime -rw-r--r-- 1 root root 1854 Nov 10 2002 nsswitch.conf -rw-r--r-- 1 root root 24 Mar 24 19:43 resolv.conf -rw-r--r-- 1 root root 24450 Jul 2 2005 services /var/resolv/lib: total 300 -rwxr-xr-x 1 root root 72592 Mar 11 23:19 libnsl.so.1 -rw-r--r-- 1 root root 17760 Jan 10 03:16 libnss_dns.so.2 -rw-r--r-- 1 root root 34180 Jan 10 03:16 libnss_files.so.2 -rwxr-xr-x 1 root root 17772 Mar 11 23:19 libnss_hesiod.so.2 -rw-r--r-- 1 root root 34232 May 26 2005 libnss_nis.so.2 -rw-r--r-- 1 root root 42344 Jan 10 03:16 libnss_nisplus.so.2 -rwxr-xr-x 1 root root 63220 Mar 11 23:18 libresolv.so.2 /var/resolv/var: total 8 drwxr-xr-x 2 root root 4096 Sep 5 2005 nis drwxr-xr-x 3 root root 4096 Mar 20 11:34 yp /var/resolv/var/nis: total 0 /var/resolv/var/yp: total 4 drwxr-xr-x 2 root root 4096 Sep 5 2005 binding /var/resolv/var/yp/binding: total 0 В чем тогда дело? -- С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2006-03-28 7:11 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-03-24 14:02 Eugene Prokopiev 2006-03-24 14:14 ` Шенцев Алексей Владимирович 2006-03-24 15:04 ` Eugene Prokopiev 2006-03-25 9:47 ` Sergey 2006-03-25 13:12 ` Alexey Borovskoy 2006-03-28 7:11 ` Eugene Prokopiev [this message] 2006-03-28 8:02 ` Eugene Prokopiev 2006-03-28 8:11 ` Alexey I. Froloff 2006-03-28 8:28 ` Yuriy Kashirin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4428E1AB.4030906@ats-manager.stc.donpac.ru \ --to=prokopiev@stc.donpac.ru \ --cc=sisyphus@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git