1 |
Renat Golubchyk wrote: |
2 |
> On Mon, 24 Oct 2005 15:06:26 -0400 "Eric S. Johansson" <esj@××××××.org> |
3 |
> wrote: |
4 |
>> The problem was /etc/init.d/net.eth0 and /etc/init.d/net.lo were the |
5 |
>> same. The net.eth0 code was overwritten with the lo code. |
6 |
>> |
7 |
>> This happened on two machines and I'm wondering how it happened? Did |
8 |
>> something go wrong in the emerge process? There's no sign of any |
9 |
>> attackers. |
10 |
> |
11 |
> They are always the same since net.eth0 (and all other net.<interface>) |
12 |
> is a symlink to net.lo. |
13 |
|
14 |
then that's what broke. net.lo looks like it should and my net.eth0 |
15 |
looks like: |
16 |
|
17 |
relay2 ~ # more /etc/init.d/net.eth0 |
18 |
#!/sbin/runscript |
19 |
# Copyright 1999-2004 Gentoo Technologies, Inc. |
20 |
# Distributed under the terms of the GNU General Public License v2 |
21 |
# $Header: /home/cvsroot/gentoo-src/rc-scripts/init.d/net.lo,v 1.10 |
22 |
2004/04/21 17:09:18 vapier Exp $ |
23 |
|
24 |
start() { |
25 |
ebegin "Bringing ${IFACE} up" |
26 |
/sbin/ifconfig lo 127.0.0.1 up 2>/dev/null |
27 |
/sbin/route add -net 127.0.0.0 netmask 255.0.0.0 \ |
28 |
gw 127.0.0.1 dev lo 2> /dev/null |
29 |
eend 0 |
30 |
} |
31 |
|
32 |
stop() { |
33 |
ebegin "Bringing ${IFACE} down" |
34 |
/sbin/ifconfig ${IFACE} down &>/dev/null |
35 |
eend 0 |
36 |
} |
37 |
|
38 |
|
39 |
I thought they were the same because I was debugging one machine over |
40 |
the telephone and looking at a couple of different machines for examples |
41 |
and things got a mite confused. In other words, it's wrong just not the |
42 |
wrong way I thought it was. |
43 |
|
44 |
|
45 |
--- eric |
46 |
|
47 |
-- |
48 |
gentoo-user@g.o mailing list |